Instructions to use p1atdev/plat-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use p1atdev/plat-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("p1atdev/plat-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 README.md
#4
by p1atdev - opened
README.md
CHANGED
|
@@ -12,6 +12,8 @@ tags:
|
|
| 12 |
|
| 13 |
Plat Diffusion is a fine-tuned model based on [Waifu Diffusion v1.4 Anime Epoch 1](https://huggingface.co/hakurei/waifu-diffusion-v1-4) with images generated with niji・journey.
|
| 14 |
|
|
|
|
|
|
|
| 15 |

|
| 16 |
|
| 17 |
|
|
@@ -33,7 +35,7 @@ from diffusers import StableDiffusionPipeline
|
|
| 33 |
import torch
|
| 34 |
|
| 35 |
model_id = "p1atdev/plat-diffusion"
|
| 36 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.
|
| 37 |
pipe = pipe.to("cuda")
|
| 38 |
|
| 39 |
prompt = "masterpiece, best quality, 1girl, orange feather, blue crystals, blurry foreground"
|
|
|
|
| 12 |
|
| 13 |
Plat Diffusion is a fine-tuned model based on [Waifu Diffusion v1.4 Anime Epoch 1](https://huggingface.co/hakurei/waifu-diffusion-v1-4) with images generated with niji・journey.
|
| 14 |
|
| 15 |
+
`.safetensors` file is [here](https://huggingface.co/p1atdev/pd-archive/tree/main).
|
| 16 |
+
|
| 17 |

|
| 18 |
|
| 19 |
|
|
|
|
| 35 |
import torch
|
| 36 |
|
| 37 |
model_id = "p1atdev/plat-diffusion"
|
| 38 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32) # not working with float16
|
| 39 |
pipe = pipe.to("cuda")
|
| 40 |
|
| 41 |
prompt = "masterpiece, best quality, 1girl, orange feather, blue crystals, blurry foreground"
|