Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -123,10 +123,10 @@ 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 |
-
|
130 |
#pipe.to(device, torch.bfloat16)
|
131 |
del pipeX
|
132 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
|
|
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)
|
130 |
#pipe.to(device, torch.bfloat16)
|
131 |
del pipeX
|
132 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|