Update app.py
Browse files
app.py
CHANGED
|
@@ -204,11 +204,11 @@ def load_and_prepare_model():
|
|
| 204 |
pipe.vae.vae_scale_factor=8
|
| 205 |
|
| 206 |
#pipe.scheduler = sched
|
| 207 |
-
|
| 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)
|
|
|
|
| 204 |
pipe.vae.vae_scale_factor=8
|
| 205 |
|
| 206 |
#pipe.scheduler = sched
|
| 207 |
+
pipe.scheduler =EDMDPMSolverMultistepScheduler.from_pretrained('John6666/uber-realistic-porn-merge-xl-urpmxl-v6final-sdxl', subfolder='scheduler', algorithm_type='sde-dpmsolver++')
|
| 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)
|