ford442 commited on
Commit
f61076f
·
1 Parent(s): ccd258f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def load_and_prepare_model(model_id):
130
  # pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
131
  #pipe.to(dtype=torch.bfloat16)
132
  pipe.unet = pipeX.unet
133
- pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
134
  pipe.to(device)
135
  pipe.unet.to(torch.bfloat16)
136
  pipe.vae.to(torch.bfloat16)
 
130
  # pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
131
  #pipe.to(dtype=torch.bfloat16)
132
  pipe.unet = pipeX.unet
133
+ pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
134
  pipe.to(device)
135
  pipe.unet.to(torch.bfloat16)
136
  pipe.vae.to(torch.bfloat16)