Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,8 +113,8 @@ def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str
|
|
113 |
def load_and_prepare_model(model_id):
|
114 |
model_dtypes = {"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,}
|
115 |
dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
|
116 |
-
|
117 |
-
vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')
|
118 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
119 |
model_id,
|
120 |
# torch_dtype=torch.bfloat16,
|
|
|
113 |
def load_and_prepare_model(model_id):
|
114 |
model_dtypes = {"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,}
|
115 |
dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
|
116 |
+
vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", torch_dtype=torch.bfloat16,safety_checker=None).to('cuda')
|
117 |
+
# vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')
|
118 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
119 |
model_id,
|
120 |
# torch_dtype=torch.bfloat16,
|