Instructions to use Tencent-Hunyuan/HunyuanDiT-v1.1-ControlNet-Diffusers-Canny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Tencent-Hunyuan/HunyuanDiT-v1.1-ControlNet-Diffusers-Canny with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.1-ControlNet-Diffusers-Canny", 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
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
"mlp_ratio": 4.3637,
|
| 13 |
"norm_type": "layer_norm",
|
| 14 |
"num_attention_heads": 16,
|
| 15 |
-
"
|
| 16 |
"patch_size": 2,
|
| 17 |
"pooled_projection_dim": 1024,
|
| 18 |
"sample_size": 128,
|
|
|
|
| 12 |
"mlp_ratio": 4.3637,
|
| 13 |
"norm_type": "layer_norm",
|
| 14 |
"num_attention_heads": 16,
|
| 15 |
+
"transformer_num_layers": 40,
|
| 16 |
"patch_size": 2,
|
| 17 |
"pooled_projection_dim": 1024,
|
| 18 |
"sample_size": 128,
|