Update app.py
Browse files
app.py
CHANGED
@@ -15,11 +15,11 @@ MAX_IMG_SIZE = 4096
|
|
15 |
|
16 |
device = torch.device("cpu")
|
17 |
|
18 |
-
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.
|
19 |
pipe = DiffusionPipeline.from_pretrained(
|
20 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
21 |
vae=vae,
|
22 |
-
torch_dtype=torch.
|
23 |
use_safetensors=True,
|
24 |
variant="fp16",
|
25 |
)
|
|
|
15 |
|
16 |
device = torch.device("cpu")
|
17 |
|
18 |
+
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float32)
|
19 |
pipe = DiffusionPipeline.from_pretrained(
|
20 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
21 |
vae=vae,
|
22 |
+
torch_dtype=torch.float32,
|
23 |
use_safetensors=True,
|
24 |
variant="fp16",
|
25 |
)
|