ford442 commited on
Commit
4580059
·
1 Parent(s): 7cfdc76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -111,13 +111,14 @@ def load_and_prepare_model(model_id):
111
  #vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae",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)
 
115
 
116
  #pipeX = StableDiffusionXLPipeline.from_pretrained("SG161222/RealVisXL_V5.0",torch_dtype=torch.float32)
117
  #pipeX = StableDiffusionXLPipeline.from_pretrained("ford442/Juggernaut-XI-v11-fp32",torch_dtype=torch.float32)
118
  pipe = StableDiffusionXLPipeline.from_pretrained(
119
- # 'ford442/RealVisXL_V5.0_BF16',
120
- 'ford442/Juggernaut-XI-v11-fp32',
121
  #torch_dtype=torch.bfloat16,
122
  add_watermarker=False,
123
  # custom_pipeline="lpw_stable_diffusion_xl",
 
111
  #vae = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae",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)
115
+ sched = EulerAncestralDiscreteScheduler.from_config('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear",use_karras_sigmas=True)
116
 
117
  #pipeX = StableDiffusionXLPipeline.from_pretrained("SG161222/RealVisXL_V5.0",torch_dtype=torch.float32)
118
  #pipeX = StableDiffusionXLPipeline.from_pretrained("ford442/Juggernaut-XI-v11-fp32",torch_dtype=torch.float32)
119
  pipe = StableDiffusionXLPipeline.from_pretrained(
120
+ 'ford442/RealVisXL_V5.0_BF16',
121
+ # 'ford442/Juggernaut-XI-v11-fp32',
122
  #torch_dtype=torch.bfloat16,
123
  add_watermarker=False,
124
  # custom_pipeline="lpw_stable_diffusion_xl",