Update app.py
Browse files
app.py
CHANGED
|
@@ -208,7 +208,7 @@ def load_and_prepare_model(model_id):
|
|
| 208 |
#pipe.vae=vae.to(torch.bfloat16)
|
| 209 |
#pipe.unet=pipeX.unet
|
| 210 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
| 211 |
-
|
| 212 |
|
| 213 |
pipe.to(device=device, dtype=torch.bfloat16)
|
| 214 |
#pipe.to(torch.bfloat16)
|
|
|
|
| 208 |
#pipe.vae=vae.to(torch.bfloat16)
|
| 209 |
#pipe.unet=pipeX.unet
|
| 210 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
| 211 |
+
pipe.scheduler=EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear")
|
| 212 |
|
| 213 |
pipe.to(device=device, dtype=torch.bfloat16)
|
| 214 |
#pipe.to(torch.bfloat16)
|