Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,8 +124,8 @@ def load_and_prepare_model(model_id):
|
|
| 124 |
# pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 125 |
|
| 126 |
pipe.unet = pipeX.unet
|
| 127 |
-
pipe.to(dtype=torch.bfloat16)
|
| 128 |
pipe.to(device)
|
|
|
|
| 129 |
|
| 130 |
#pipe.to(device, dtype=torch.bfloat16)
|
| 131 |
#del pipeX
|
|
|
|
| 124 |
# pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 125 |
|
| 126 |
pipe.unet = pipeX.unet
|
|
|
|
| 127 |
pipe.to(device)
|
| 128 |
+
pipe.to(dtype=torch.bfloat16)
|
| 129 |
|
| 130 |
#pipe.to(device, dtype=torch.bfloat16)
|
| 131 |
#del pipeX
|