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 Settings
- Draw Things
- DiffusionBee
Fix code syntax
Browse files
README.md
CHANGED
|
@@ -36,7 +36,7 @@ This model can be used for entertainment purposes and as a generative art assist
|
|
| 36 |
|
| 37 |
## Example Code
|
| 38 |
|
| 39 |
-
```
|
| 40 |
import torch
|
| 41 |
from torch import autocast
|
| 42 |
from diffusers import StableDiffusionPipeline
|
|
|
|
| 36 |
|
| 37 |
## Example Code
|
| 38 |
|
| 39 |
+
```python
|
| 40 |
import torch
|
| 41 |
from torch import autocast
|
| 42 |
from diffusers import StableDiffusionPipeline
|