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 ·
de55a08
1
Parent(s): 6e626f3
correct vocab
Browse files- run_local.py +1 -1
run_local.py
CHANGED
|
@@ -25,7 +25,7 @@ counter = 1000
|
|
| 25 |
for b in begin:
|
| 26 |
for m in mid:
|
| 27 |
for e in end:
|
| 28 |
-
prompt = b +
|
| 29 |
|
| 30 |
images = pipe(prompt=prompt, num_images_per_prompt=2, eta=1.0, negative_prompt="ugly, bad quality, deformed", num_inference_steps=50).images
|
| 31 |
|
|
|
|
| 25 |
for b in begin:
|
| 26 |
for m in mid:
|
| 27 |
for e in end:
|
| 28 |
+
prompt = b + m + e + ", highly realistic, super resolution, high quality photography, beautiful"
|
| 29 |
|
| 30 |
images = pipe(prompt=prompt, num_images_per_prompt=2, eta=1.0, negative_prompt="ugly, bad quality, deformed", num_inference_steps=50).images
|
| 31 |
|