Update app.py
Browse files
app.py
CHANGED
|
@@ -111,7 +111,7 @@ def load_and_prepare_model(model_id):
|
|
| 111 |
"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,
|
| 112 |
}
|
| 113 |
dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
|
| 114 |
-
vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", torch_dtype=torch.bfloat16,safety_checker=None)
|
| 115 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
| 116 |
model_id,
|
| 117 |
torch_dtype=torch.bfloat16,
|
|
|
|
| 111 |
"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,
|
| 112 |
}
|
| 113 |
dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
|
| 114 |
+
vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", torch_dtype=torch.bfloat16,safety_checker=None)
|
| 115 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
| 116 |
model_id,
|
| 117 |
torch_dtype=torch.bfloat16,
|