Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -124,11 +124,11 @@ 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(device)
|
128 |
-
pipe.to(dtype=torch.bfloat16)
|
129 |
|
130 |
-
|
131 |
-
|
132 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
133 |
#sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
|
134 |
#sched = DDIMScheduler.from_config(pipe.scheduler.config)
|
|
|
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
|
132 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
133 |
#sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
|
134 |
#sched = DDIMScheduler.from_config(pipe.scheduler.config)
|