ford442 commited on
Commit
918d6ac
·
1 Parent(s): 4a0eaed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,7 +108,7 @@ 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,safety_checker=None)
112
  # 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)
113
  # vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')
114
  #sched = EulerAncestralDiscreteScheduler.from_config('ford442/Juggernaut-XI-v11-fp32', subfolder='scheduler',beta_schedule="scaled_linear",use_karras_sigmas=True)
@@ -156,7 +156,7 @@ def load_and_prepare_model(model_id):
156
  print(f'Pipeline: ')
157
  print(f'_optional_components: {pipe._optional_components}')
158
  print(f'watermark: {pipe.watermark}')
159
- print(f'safety_checker: {pipe.safety_checker}')
160
  print(f'final_image_processor: {pipe.final_image_processor}')
161
  print(f'feature_extractor: {pipe.feature_extractor}')
162
  pipe.watermark=None
 
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("BeastHF/MyBack_SDXL_Juggernaut_XL_VAE/MyBack_SDXL_Juggernaut_XL_VAE_V10(version_X).safetensors",safety_checker=None).to(torch.bfloat16)
113
  # vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None).to('cuda')
114
  #sched = EulerAncestralDiscreteScheduler.from_config('ford442/Juggernaut-XI-v11-fp32', subfolder='scheduler',beta_schedule="scaled_linear",use_karras_sigmas=True)
 
156
  print(f'Pipeline: ')
157
  print(f'_optional_components: {pipe._optional_components}')
158
  print(f'watermark: {pipe.watermark}')
159
+ print(f'safety_checker: {pipe.vae.safety_checker}')
160
  print(f'final_image_processor: {pipe.final_image_processor}')
161
  print(f'feature_extractor: {pipe.feature_extractor}')
162
  pipe.watermark=None