ford442 commited on
Commit
2a2b4be
·
1 Parent(s): 71ad8aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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).to('cuda')
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,