Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,8 @@ def load_and_prepare_model(model_id):
|
|
119 |
)
|
120 |
sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
|
121 |
pipe.scheduler=sched
|
122 |
-
pipe.to(device=device, dtype=torch.bfloat16)
|
|
|
123 |
return pipe
|
124 |
|
125 |
# Preload and compile both models
|
|
|
119 |
)
|
120 |
sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
|
121 |
pipe.scheduler=sched
|
122 |
+
#pipe.to(device=device, dtype=torch.bfloat16)
|
123 |
+
pipe.to(device=device)
|
124 |
return pipe
|
125 |
|
126 |
# Preload and compile both models
|