Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|