Instructions to use Tencent-Hunyuan/HunyuanDiT-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Tencent-Hunyuan/HunyuanDiT-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("Tencent-Hunyuan/HunyuanDiT-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 Settings
- Draw Things
- DiffusionBee
update transformers
Browse files
README.md
CHANGED
|
@@ -21,6 +21,11 @@ This repo contains the pre-trained text-to-image model in 🤗 [Diffusers](https
|
|
| 21 |
## Dependency
|
| 22 |
Please install PyTorch first, following the instruction in [https://pytorch.org](https://pytorch.org)
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
Then install the latest github version of 🤗 Diffusers with `pip`:
|
| 25 |
```
|
| 26 |
pip install git+https://github.com/huggingface/diffusers.git
|
|
|
|
| 21 |
## Dependency
|
| 22 |
Please install PyTorch first, following the instruction in [https://pytorch.org](https://pytorch.org)
|
| 23 |
|
| 24 |
+
Install the latest version of transformers with `pip`:
|
| 25 |
+
```
|
| 26 |
+
pip install --upgrade transformers
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
Then install the latest github version of 🤗 Diffusers with `pip`:
|
| 30 |
```
|
| 31 |
pip install git+https://github.com/huggingface/diffusers.git
|