Instructions to use glides/ponyxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use glides/ponyxl with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("glides/ponyxl", 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
|
@@ -12,10 +12,10 @@ You can use this with the 🧨Diffusers library from [Hugging Face](https://hugg
|
|
| 12 |
|
| 13 |
### Diffusers
|
| 14 |
```py
|
| 15 |
-
from diffusers import
|
| 16 |
import torch
|
| 17 |
|
| 18 |
-
pipeline =
|
| 19 |
|
| 20 |
image = pipeline(prompt="a chibi doll").images[0]
|
| 21 |
image.save("horse.png")
|
|
|
|
| 12 |
|
| 13 |
### Diffusers
|
| 14 |
```py
|
| 15 |
+
from diffusers import StableDiffusionXLPipeline
|
| 16 |
import torch
|
| 17 |
|
| 18 |
+
pipeline = StableDiffusionXLPipeline.from_pretrained("nroggendorff/ponyxl").to("cuda")
|
| 19 |
|
| 20 |
image = pipeline(prompt="a chibi doll").images[0]
|
| 21 |
image.save("horse.png")
|