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 ·
fbcadae
1
Parent(s): 3e9f5ce
up
Browse files- run_xl_ediffi.py +0 -1
run_xl_ediffi.py
CHANGED
|
@@ -19,7 +19,6 @@ api = HfApi()
|
|
| 19 |
start_time = time.time()
|
| 20 |
|
| 21 |
model_id = "stabilityai/stable-diffusion-xl-base-0.9"
|
| 22 |
-
model_id = "runwayml/stable-diffusion-v1-5"
|
| 23 |
pipe_high_noise = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, variant="fp16", use_safetensors=True, local_files_only=True)
|
| 24 |
pipe_high_noise.scheduler = DEISMultistepScheduler.from_config(pipe_high_noise.scheduler.config)
|
| 25 |
pipe_high_noise.to("cuda")
|
|
|
|
| 19 |
start_time = time.time()
|
| 20 |
|
| 21 |
model_id = "stabilityai/stable-diffusion-xl-base-0.9"
|
|
|
|
| 22 |
pipe_high_noise = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, variant="fp16", use_safetensors=True, local_files_only=True)
|
| 23 |
pipe_high_noise.scheduler = DEISMultistepScheduler.from_config(pipe_high_noise.scheduler.config)
|
| 24 |
pipe_high_noise.to("cuda")
|