ford442 commited on
Commit
9b93b40
·
1 Parent(s): 9d26b36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ 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
127
  #pipe.to(dtype=torch.bfloat16)
128
  pipe.to(device)
129
  pipe.to(torch.bfloat16)
 
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)