Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidan
|
|
| 50 |
else:
|
| 51 |
joint_attention_kwargs = None
|
| 52 |
|
| 53 |
-
apply_cache_on_pipe(
|
| 54 |
pipe,
|
| 55 |
# residual_diff_threshold=0.2,
|
| 56 |
)
|
|
@@ -67,6 +67,7 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidan
|
|
| 67 |
output_type="pil",
|
| 68 |
good_vae=good_vae, # Assuming good_vae is defined elsewhere
|
| 69 |
joint_attention_kwargs=joint_attention_kwargs, # Fixed parameter name
|
|
|
|
| 70 |
):
|
| 71 |
yield img, seed
|
| 72 |
finally:
|
|
|
|
| 50 |
else:
|
| 51 |
joint_attention_kwargs = None
|
| 52 |
|
| 53 |
+
cache_scope = apply_cache_on_pipe(
|
| 54 |
pipe,
|
| 55 |
# residual_diff_threshold=0.2,
|
| 56 |
)
|
|
|
|
| 67 |
output_type="pil",
|
| 68 |
good_vae=good_vae, # Assuming good_vae is defined elsewhere
|
| 69 |
joint_attention_kwargs=joint_attention_kwargs, # Fixed parameter name
|
| 70 |
+
cache_scope=cache_scope,
|
| 71 |
):
|
| 72 |
yield img, seed
|
| 73 |
finally:
|