Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -233,6 +233,10 @@ if torch.cuda.is_available():
|
|
233 |
use_safetensors=True,
|
234 |
add_watermarker=False
|
235 |
)
|
|
|
|
|
|
|
|
|
236 |
pipe.to("cuda")
|
237 |
|
238 |
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
|
233 |
use_safetensors=True,
|
234 |
add_watermarker=False
|
235 |
)
|
236 |
+
pipe.scheduler.register_to_config(
|
237 |
+
prediction_type="v_prediction",
|
238 |
+
rescale_betas_zero_snr=True,
|
239 |
+
)
|
240 |
pipe.to("cuda")
|
241 |
|
242 |
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|