Instructions to use Tencent-Hunyuan/HunyuanDiT-v1.1-Diffusers-Distilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Tencent-Hunyuan/HunyuanDiT-v1.1-Diffusers-Distilled 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-Diffusers-Distilled", 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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ pip install git+https://github.com/huggingface/diffusers.git
|
|
| 38 |
import torch
|
| 39 |
from diffusers import HunyuanDiTPipeline
|
| 40 |
|
| 41 |
-
pipe = HunyuanDiTPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-Diffusers-Distilled", torch_dtype=torch.float16)
|
| 42 |
pipe.to("cuda")
|
| 43 |
|
| 44 |
# You may also use English prompt as HunyuanDiT supports both English and Chinese
|
|
|
|
| 38 |
import torch
|
| 39 |
from diffusers import HunyuanDiTPipeline
|
| 40 |
|
| 41 |
+
pipe = HunyuanDiTPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.1-Diffusers-Distilled", torch_dtype=torch.float16)
|
| 42 |
pipe.to("cuda")
|
| 43 |
|
| 44 |
# You may also use English prompt as HunyuanDiT supports both English and Chinese
|