Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def load_and_prepare_model(model_id):
|
|
| 130 |
# pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 131 |
#pipe.to(dtype=torch.bfloat16)
|
| 132 |
pipe.unet = pipeX.unet
|
| 133 |
-
pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 134 |
pipe.to(device)
|
| 135 |
pipe.unet.to(torch.bfloat16)
|
| 136 |
pipe.vae.to(torch.bfloat16)
|
|
|
|
| 130 |
# pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 131 |
#pipe.to(dtype=torch.bfloat16)
|
| 132 |
pipe.unet = pipeX.unet
|
| 133 |
+
pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
| 134 |
pipe.to(device)
|
| 135 |
pipe.unet.to(torch.bfloat16)
|
| 136 |
pipe.vae.to(torch.bfloat16)
|