madebyollin
commited on
Commit
•
4df413c
1
Parent(s):
97b09ba
0.9 -> 1.0
Browse files
README.md
CHANGED
@@ -23,10 +23,10 @@ import torch
|
|
23 |
from diffusers import DiffusionPipeline, AutoencoderKL
|
24 |
|
25 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
26 |
-
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0
|
27 |
pipe.to("cuda")
|
28 |
|
29 |
-
refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-0
|
30 |
refiner.to("cuda")
|
31 |
|
32 |
n_steps = 40
|
|
|
23 |
from diffusers import DiffusionPipeline, AutoencoderKL
|
24 |
|
25 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
26 |
+
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
|
27 |
pipe.to("cuda")
|
28 |
|
29 |
+
refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", vae=vae, torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
|
30 |
refiner.to("cuda")
|
31 |
|
32 |
n_steps = 40
|