Spaces:
Running on Zero
Running on Zero
Professional Noob commited on
Update qwenimage/pipeline_qwenimage_edit_plus.py
Browse files
qwenimage/pipeline_qwenimage_edit_plus.py
CHANGED
|
@@ -520,6 +520,11 @@ class QwenImageEditPlusPipeline(DiffusionPipeline, QwenImageLoraLoaderMixin):
|
|
| 520 |
callback_on_step_end_tensor_inputs: List[str] = ["latents"],
|
| 521 |
max_sequence_length: int = 512,
|
| 522 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
# ---- determine input size ----
|
| 524 |
if isinstance(image, list):
|
| 525 |
image_size = image[0].size
|
|
|
|
| 520 |
callback_on_step_end_tensor_inputs: List[str] = ["latents"],
|
| 521 |
max_sequence_length: int = 512,
|
| 522 |
):
|
| 523 |
+
"""Run Qwen-Image-Edit inference.
|
| 524 |
+
|
| 525 |
+
Note: diffusers' `replace_example_docstring` decorator expects the wrapped
|
| 526 |
+
function to have a docstring; without it, Space startup fails.
|
| 527 |
+
"""
|
| 528 |
# ---- determine input size ----
|
| 529 |
if isinstance(image, list):
|
| 530 |
image_size = image[0].size
|