Instructions to use Kwai-Kolors/Kolors-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Kwai-Kolors/Kolors-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("Kwai-Kolors/Kolors-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
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ Kolors is a large-scale text-to-image generation model based on latent diffusion
|
|
| 22 |
|
| 23 |
## 🚀 Quick Start
|
| 24 |
### Using with Diffusers
|
| 25 |
-
Make sure you upgrade to the latest version of diffusers: pip install -U diffusers. And then you can run:
|
| 26 |
```python
|
| 27 |
import torch
|
| 28 |
from diffusers import KolorsPipeline
|
|
|
|
| 22 |
|
| 23 |
## 🚀 Quick Start
|
| 24 |
### Using with Diffusers
|
| 25 |
+
Make sure you upgrade to the latest version of diffusers: `pip install -U diffusers`. And then you can run:
|
| 26 |
```python
|
| 27 |
import torch
|
| 28 |
from diffusers import KolorsPipeline
|