ford442 commited on
Commit
da89fe8
·
1 Parent(s): 8ea148a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -123,11 +123,9 @@ 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
-
127
  #pipe.to(dtype=torch.bfloat16)
128
  pipe.to(device)
129
- pipe.unet = pipeX.unet.to(device).to(torch.bfloat16)
130
-
131
  #pipe.to(torch.bfloat16)
132
  #pipe.to(device, torch.bfloat16)
133
  del pipeX
 
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