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
update unet config
Browse files- unet/config.json +0 -5
unet/config.json
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
-
<<<<<<< HEAD
|
| 4 |
"_diffusers_version": "0.4.1",
|
| 5 |
-
=======
|
| 6 |
-
"_diffusers_version": "0.2.4",
|
| 7 |
-
"_name_or_path": "waifu-diffusion/unet",
|
| 8 |
-
>>>>>>> b45bafccd9d0e0757b70a54c7ebc32ff56ca9ee1
|
| 9 |
"act_fn": "silu",
|
| 10 |
"attention_head_dim": 8,
|
| 11 |
"block_out_channels": [
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
|
|
|
| 3 |
"_diffusers_version": "0.4.1",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
"act_fn": "silu",
|
| 5 |
"attention_head_dim": 8,
|
| 6 |
"block_out_channels": [
|