Spaces:
Sleeping
Sleeping
Update syngen_diffusion_pipeline.py
Browse files
syngen_diffusion_pipeline.py
CHANGED
@@ -104,7 +104,7 @@ class SynGenDiffusionPipeline(StableDiffusionPipeline):
|
|
104 |
callback: Optional[Callable[[int, int, torch.FloatTensor], None]] = None,
|
105 |
callback_steps: int = 1,
|
106 |
cross_attention_kwargs: Optional[Dict[str, Any]] = None,
|
107 |
-
syngen_step_size:
|
108 |
):
|
109 |
r"""
|
110 |
Function invoked when calling the pipeline for generation.
|
@@ -492,4 +492,4 @@ def _get_attention_maps_list(
|
|
492 |
attention_maps[:, :, i] for i in range(attention_maps.shape[2])
|
493 |
]
|
494 |
|
495 |
-
return attention_maps_list
|
|
|
104 |
callback: Optional[Callable[[int, int, torch.FloatTensor], None]] = None,
|
105 |
callback_steps: int = 1,
|
106 |
cross_attention_kwargs: Optional[Dict[str, Any]] = None,
|
107 |
+
syngen_step_size: float = 20.0,
|
108 |
):
|
109 |
r"""
|
110 |
Function invoked when calling the pipeline for generation.
|
|
|
492 |
attention_maps[:, :, i] for i in range(attention_maps.shape[2])
|
493 |
]
|
494 |
|
495 |
+
return attention_maps_list
|