ford442 commited on
Commit
343d6c1
·
verified ·
1 Parent(s): c5472cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ def load_and_prepare_model(model_id):
153
  #pipe.vae=vae.to(torch.bfloat16)
154
  #pipe.unet=pipeX.unet
155
  #pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
156
- pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear")
157
 
158
  pipe.to(device)
159
  pipe.to(torch.bfloat16)
 
153
  #pipe.vae=vae.to(torch.bfloat16)
154
  #pipe.unet=pipeX.unet
155
  #pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
156
+ pipe.scheduler=EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear")
157
 
158
  pipe.to(device)
159
  pipe.to(torch.bfloat16)