ford442 commited on
Commit
be0467d
·
1 Parent(s): 6df3a2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -132,9 +132,9 @@ def load_and_prepare_model(model_id):
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)
137
- pipe.to(torch.bfloat16)
138
  #pipe.to(device, torch.bfloat16)
139
  del pipeX
140
  #sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
 
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)
137
+ #pipe.to(torch.bfloat16)
138
  #pipe.to(device, torch.bfloat16)
139
  del pipeX
140
  #sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")