Spaces:
Runtime error
Runtime error
Update app.py
Browse filesadd weight_type
app.py
CHANGED
@@ -20,6 +20,7 @@ if torch.cuda.is_available():
|
|
20 |
# pipe.vae = AutoencoderKL.from_pretrained("IDKiro/sdxs-512-0.9/vae_large") # use original VAE
|
21 |
pipe.to("cuda")
|
22 |
else:
|
|
|
23 |
pipe = StableDiffusionPipeline.from_pretrained(repo, torch_dtype=weight_type)
|
24 |
|
25 |
# Function
|
|
|
20 |
# pipe.vae = AutoencoderKL.from_pretrained("IDKiro/sdxs-512-0.9/vae_large") # use original VAE
|
21 |
pipe.to("cuda")
|
22 |
else:
|
23 |
+
weight_type = torch.float16
|
24 |
pipe = StableDiffusionPipeline.from_pretrained(repo, torch_dtype=weight_type)
|
25 |
|
26 |
# Function
|