ford442 commited on
Commit
438f89c
·
1 Parent(s): 19d328d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -46,6 +46,7 @@ FTP_USER = "ford442"
46
  FTP_PASS = "GoogleBez12!"
47
  FTP_DIR = "1ink.us/stable_diff/" # Remote directory on FTP server
48
 
 
49
  DESCRIPTIONXX = """
50
  ## REALVISXL V5.0 BF16 ⚡⚡⚡⚡
51
  """
@@ -108,7 +109,8 @@ def load_and_prepare_model(model_id):
108
  model_dtypes = {"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,}
109
  dtype = model_dtypes.get(model_id, torch.bfloat16) # Default to float32 if not found
110
  #vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None)
111
- vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae",use_safetensors=True)
 
112
  #vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse",use_safetensors=True)
113
  # 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)
114
  # vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')
 
46
  FTP_PASS = "GoogleBez12!"
47
  FTP_DIR = "1ink.us/stable_diff/" # Remote directory on FTP server
48
 
49
+ vae_url = 'https://1ink.us/files/myslrVAE_v10.safetensors'
50
  DESCRIPTIONXX = """
51
  ## REALVISXL V5.0 BF16 ⚡⚡⚡⚡
52
  """
 
109
  model_dtypes = {"ford442/RealVisXL_V5.0_BF16": torch.bfloat16,}
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(vae_url,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')