Diffusers
English
stable-diffusion
stable-diffusion-diffusers
inpainting
art
artistic
anime
absolute-realism
Instructions to use diffusers/tools with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/tools with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/tools", 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
Commit ·
6e626f3
1
Parent(s): ae23482
correct vocab
Browse files- run_local.py +1 -1
run_local.py
CHANGED
|
@@ -20,7 +20,7 @@ path = "patrickvonplaten/papa_out_5"
|
|
| 20 |
pipe = StableDiffusionPipeline.from_pretrained(path, safety_checker=None, torch_dtype=torch.float16)
|
| 21 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 22 |
pipe = pipe.to("cuda")
|
| 23 |
-
counter =
|
| 24 |
|
| 25 |
for b in begin:
|
| 26 |
for m in mid:
|
|
|
|
| 20 |
pipe = StableDiffusionPipeline.from_pretrained(path, safety_checker=None, torch_dtype=torch.float16)
|
| 21 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 22 |
pipe = pipe.to("cuda")
|
| 23 |
+
counter = 1000
|
| 24 |
|
| 25 |
for b in begin:
|
| 26 |
for m in mid:
|