Instructions to use YuCollection/Lens-Turbo-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use YuCollection/Lens-Turbo-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("YuCollection/Lens-Turbo-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Upload transformer/config.json with huggingface_hub
Browse files- transformer/config.json +26 -0
transformer/config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "LensTransformer2DModel",
|
| 3 |
+
"_diffusers_version": "0.37.1",
|
| 4 |
+
"attention_head_dim": 64,
|
| 5 |
+
"axes_dims_rope": [
|
| 6 |
+
8,
|
| 7 |
+
28,
|
| 8 |
+
28
|
| 9 |
+
],
|
| 10 |
+
"enc_hidden_dim": 2880,
|
| 11 |
+
"gate_mlp": true,
|
| 12 |
+
"in_channels": 128,
|
| 13 |
+
"inner_dim": 1536,
|
| 14 |
+
"multi_layer_encoder_feature": true,
|
| 15 |
+
"num_attention_heads": 24,
|
| 16 |
+
"num_layers": 48,
|
| 17 |
+
"out_channels": 32,
|
| 18 |
+
"patch_size": 2,
|
| 19 |
+
"rms_norm": true,
|
| 20 |
+
"selected_layer_index": [
|
| 21 |
+
5,
|
| 22 |
+
11,
|
| 23 |
+
17,
|
| 24 |
+
23
|
| 25 |
+
]
|
| 26 |
+
}
|