Spaces:
Runtime error
Runtime error
Update models.py (#2)
Browse files- Update models.py (5b349aca014f8d204c87e7bdd4c9970bff5ff500)
Co-authored-by: John Smith <John6666@users.noreply.huggingface.co>
models.py
CHANGED
|
@@ -36,7 +36,7 @@ def load_and_compile_models():
|
|
| 36 |
)
|
| 37 |
# Load VAE separately as recommended for stabilityai models
|
| 38 |
pipe_global.vae = AutoencoderKL.from_pretrained(
|
| 39 |
-
"
|
| 40 |
)
|
| 41 |
pipe_global.to("cuda")
|
| 42 |
print("SDXL base model loaded and moved to CUDA.")
|
|
|
|
| 36 |
)
|
| 37 |
# Load VAE separately as recommended for stabilityai models
|
| 38 |
pipe_global.vae = AutoencoderKL.from_pretrained(
|
| 39 |
+
"madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16,
|
| 40 |
)
|
| 41 |
pipe_global.to("cuda")
|
| 42 |
print("SDXL base model loaded and moved to CUDA.")
|