Instructions to use hakurei/waifu-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hakurei/waifu-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hakurei/waifu-diffusion", 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
- Draw Things
- DiffusionBee
i need more sleep
Browse files
README.md
CHANGED
|
@@ -49,7 +49,7 @@ from torch import autocast
|
|
| 49 |
from diffusers import StableDiffusionPipeline
|
| 50 |
|
| 51 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 52 |
-
'waifu-diffusion',
|
| 53 |
torch_dtype=torch.float32
|
| 54 |
).to('cuda')
|
| 55 |
|
|
|
|
| 49 |
from diffusers import StableDiffusionPipeline
|
| 50 |
|
| 51 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 52 |
+
'hakurei/waifu-diffusion',
|
| 53 |
torch_dtype=torch.float32
|
| 54 |
).to('cuda')
|
| 55 |
|