Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def load_and_prepare_model(model_id):
|
|
153 |
#pipe.vae=vae.to(torch.bfloat16)
|
154 |
#pipe.unet=pipeX.unet
|
155 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
156 |
-
pipe.scheduler=EulerAncestralDiscreteScheduler.
|
157 |
|
158 |
pipe.to(device)
|
159 |
pipe.to(torch.bfloat16)
|
|
|
153 |
#pipe.vae=vae.to(torch.bfloat16)
|
154 |
#pipe.unet=pipeX.unet
|
155 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
156 |
+
pipe.scheduler=EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear")
|
157 |
|
158 |
pipe.to(device)
|
159 |
pipe.to(torch.bfloat16)
|