Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -118,11 +118,9 @@ def load_and_prepare_model(model_id):
|
|
118 |
add_watermarker=False,
|
119 |
use_safetensors=True,
|
120 |
vae=vae,
|
121 |
-
).to(
|
122 |
|
123 |
-
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
124 |
-
if ENABLE_CPU_OFFLOAD:
|
125 |
-
pipe.enable_model_cpu_offload()
|
126 |
return pipe
|
127 |
|
128 |
# Preload and compile both models
|
|
|
118 |
add_watermarker=False,
|
119 |
use_safetensors=True,
|
120 |
vae=vae,
|
121 |
+
).to('cuda')
|
122 |
|
123 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
|
|
|
|
|
124 |
return pipe
|
125 |
|
126 |
# Preload and compile both models
|