ford442 commited on
Commit
a9c3147
·
1 Parent(s): 6e051bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,10 +123,10 @@ def load_and_prepare_model(model_id):
123
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
124
  #pipe.to('cuda')
125
  # pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
126
- pipe.unet = pipeX.unet.to(torch.bfloat16)
127
  #pipe.to(dtype=torch.bfloat16)
128
  pipe.to(device)
129
- #pipe.to(torch.bfloat16)
130
  #pipe.to(device, torch.bfloat16)
131
  del pipeX
132
  #sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
 
123
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
124
  #pipe.to('cuda')
125
  # pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
126
+ pipe.unet = pipeX.unet
127
  #pipe.to(dtype=torch.bfloat16)
128
  pipe.to(device)
129
+ pipe.to(torch.bfloat16)
130
  #pipe.to(device, torch.bfloat16)
131
  del pipeX
132
  #sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")