ford442 commited on
Commit
acfbf67
·
1 Parent(s): b5776d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -110,7 +110,7 @@ def load_and_prepare_model(model_id):
110
  dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
111
  #vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None)
112
  #vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae",use_safetensors=True)
113
- vae = AutoencoderKL.from_pretrained('ford442/sdxl-vae-bf16/mySLR/myslrVAE_v10.safetensors',subfolder='mySLR',use_safetensors=True)
114
  #vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse",use_safetensors=True)
115
  # vae = AutoencoderKL.from_pretrained("BeastHF/MyBack_SDXL_Juggernaut_XL_VAE/MyBack_SDXL_Juggernaut_XL_VAE_V10(version_X).safetensors",safety_checker=None).to(torch.bfloat16)
116
  # vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')
 
110
  dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
111
  #vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None)
112
  #vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae",use_safetensors=True)
113
+ vae = AutoencoderKL.from_single_file('https://huggingface.co/ford442/sdxl-vae-bf16/mySLR/myslrVAE_v10.safetensors')
114
  #vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse",use_safetensors=True)
115
  # vae = AutoencoderKL.from_pretrained("BeastHF/MyBack_SDXL_Juggernaut_XL_VAE/MyBack_SDXL_Juggernaut_XL_VAE_V10(version_X).safetensors",safety_checker=None).to(torch.bfloat16)
116
  # vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')