@@ -75,11 +75,8 @@ class QwenImageAutoTextEncoderStep(AutoPipelineBlocks):
7575 Configs:
7676
7777 prompt_template_encode (default: <|im_start|>system
78- Describe the image by detailing the color, shape, size, texture, quantity, text, spatial relationships of the objects and background:<|im_end|>
79- <|im_start|>user
80- {}<|im_end|>
81- <|im_start|>assistant
82- )
78+ Describe the image by detailing the color, shape, size, texture, quantity, text, spatial relationships of the
79+ objects and background:<|im_end|> <|im_start|>user {}<|im_end|> <|im_start|>assistant )
8380
8481 prompt_template_encode_start_idx (default: 34)
8582
@@ -151,7 +148,9 @@ class QwenImageInpaintVaeEncoderStep(SequentialPipelineBlocks):
151148
152149 Outputs:
153150 processed_image (`None`):
151+ TODO: Add description.
154152 processed_mask_image (`None`):
153+ TODO: Add description.
155154 mask_overlay_kwargs (`Dict`):
156155 The kwargs for the postprocess step to apply the mask overlay
157156 image_latents (`Tensor`):
@@ -195,6 +194,7 @@ class QwenImageImg2ImgVaeEncoderStep(SequentialPipelineBlocks):
195194
196195 Outputs:
197196 processed_image (`None`):
197+ TODO: Add description.
198198 image_latents (`Tensor`):
199199 The latents representing the reference image(s). Single tensor or list depending on input.
200200 """
@@ -290,14 +290,19 @@ class QwenImageImg2ImgInputStep(SequentialPipelineBlocks):
290290 num_images_per_prompt (`int`, *optional*, defaults to 1):
291291 The number of images to generate per prompt.
292292 prompt_embeds (`None`):
293+ TODO: Add description.
293294 prompt_embeds_mask (`None`):
295+ TODO: Add description.
294296 negative_prompt_embeds (`None`, *optional*):
297+ TODO: Add description.
295298 negative_prompt_embeds_mask (`None`, *optional*):
299+ TODO: Add description.
296300 height (`int`, *optional*):
297301 The height in pixels of the generated image.
298302 width (`int`, *optional*):
299303 The width in pixels of the generated image.
300304 image_latents (`None`, *optional*):
305+ TODO: Add description.
301306
302307 Outputs:
303308 batch_size (`int`):
@@ -334,15 +339,21 @@ class QwenImageInpaintInputStep(SequentialPipelineBlocks):
334339 num_images_per_prompt (`int`, *optional*, defaults to 1):
335340 The number of images to generate per prompt.
336341 prompt_embeds (`None`):
342+ TODO: Add description.
337343 prompt_embeds_mask (`None`):
344+ TODO: Add description.
338345 negative_prompt_embeds (`None`, *optional*):
346+ TODO: Add description.
339347 negative_prompt_embeds_mask (`None`, *optional*):
348+ TODO: Add description.
340349 height (`int`, *optional*):
341350 The height in pixels of the generated image.
342351 width (`int`, *optional*):
343352 The width in pixels of the generated image.
344353 image_latents (`None`, *optional*):
354+ TODO: Add description.
345355 processed_mask_image (`None`, *optional*):
356+ TODO: Add description.
346357
347358 Outputs:
348359 batch_size (`int`):
@@ -389,14 +400,18 @@ class QwenImageInpaintPrepareLatentsStep(SequentialPipelineBlocks):
389400 latents (`Tensor`):
390401 The initial random noised, can be generated in prepare latent step.
391402 image_latents (`Tensor`):
392- The image latents to use for the denoising process. Can be generated in vae encoder and packed in input step.
403+ The image latents to use for the denoising process. Can be generated in vae encoder and packed in input
404+ step.
393405 timesteps (`Tensor`):
394406 The timesteps to use for the denoising process. Can be generated in set_timesteps step.
395407 processed_mask_image (`Tensor`):
396408 The processed mask to use for the inpainting process.
397409 height (`None`):
410+ TODO: Add description.
398411 width (`None`):
412+ TODO: Add description.
399413 dtype (`None`):
414+ TODO: Add description.
400415
401416 Outputs:
402417 initial_noise (`Tensor`):
@@ -425,7 +440,8 @@ def description(self) -> str:
425440# auto_docstring
426441class QwenImageCoreDenoiseStep (SequentialPipelineBlocks ):
427442 """
428- step that denoise noise into image for text2image task. It includes the denoise loop, as well as prepare the inputs (timesteps, latents, rope inputs etc.).
443+ step that denoise noise into image for text2image task. It includes the denoise loop, as well as prepare the inputs
444+ (timesteps, latents, rope inputs etc.).
429445
430446 Components:
431447
@@ -441,9 +457,13 @@ class QwenImageCoreDenoiseStep(SequentialPipelineBlocks):
441457 num_images_per_prompt (`int`, *optional*, defaults to 1):
442458 The number of images to generate per prompt.
443459 prompt_embeds (`None`):
460+ TODO: Add description.
444461 prompt_embeds_mask (`None`):
462+ TODO: Add description.
445463 negative_prompt_embeds (`None`, *optional*):
464+ TODO: Add description.
446465 negative_prompt_embeds_mask (`None`, *optional*):
466+ TODO: Add description.
447467 latents (`Tensor`, *optional*):
448468 Pre-generated noisy latents for image generation.
449469 height (`int`, *optional*):
@@ -499,7 +519,8 @@ def outputs(self):
499519# auto_docstring
500520class QwenImageInpaintCoreDenoiseStep (SequentialPipelineBlocks ):
501521 """
502- Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for inpaint task.
522+ Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for inpaint
523+ task.
503524
504525 Components:
505526
@@ -515,15 +536,21 @@ class QwenImageInpaintCoreDenoiseStep(SequentialPipelineBlocks):
515536 num_images_per_prompt (`int`, *optional*, defaults to 1):
516537 The number of images to generate per prompt.
517538 prompt_embeds (`None`):
539+ TODO: Add description.
518540 prompt_embeds_mask (`None`):
541+ TODO: Add description.
519542 negative_prompt_embeds (`None`, *optional*):
543+ TODO: Add description.
520544 negative_prompt_embeds_mask (`None`, *optional*):
545+ TODO: Add description.
521546 height (`int`, *optional*):
522547 The height in pixels of the generated image.
523548 width (`int`, *optional*):
524549 The width in pixels of the generated image.
525550 image_latents (`None`, *optional*):
551+ TODO: Add description.
526552 processed_mask_image (`None`, *optional*):
553+ TODO: Add description.
527554 latents (`Tensor`, *optional*):
528555 Pre-generated noisy latents for image generation.
529556 generator (`Generator`, *optional*):
@@ -579,7 +606,8 @@ def outputs(self):
579606# auto_docstring
580607class QwenImageImg2ImgCoreDenoiseStep (SequentialPipelineBlocks ):
581608 """
582- Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for img2img task.
609+ Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for img2img
610+ task.
583611
584612 Components:
585613
@@ -595,14 +623,19 @@ class QwenImageImg2ImgCoreDenoiseStep(SequentialPipelineBlocks):
595623 num_images_per_prompt (`int`, *optional*, defaults to 1):
596624 The number of images to generate per prompt.
597625 prompt_embeds (`None`):
626+ TODO: Add description.
598627 prompt_embeds_mask (`None`):
628+ TODO: Add description.
599629 negative_prompt_embeds (`None`, *optional*):
630+ TODO: Add description.
600631 negative_prompt_embeds_mask (`None`, *optional*):
632+ TODO: Add description.
601633 height (`int`, *optional*):
602634 The height in pixels of the generated image.
603635 width (`int`, *optional*):
604636 The width in pixels of the generated image.
605637 image_latents (`None`, *optional*):
638+ TODO: Add description.
606639 latents (`Tensor`, *optional*):
607640 Pre-generated noisy latents for image generation.
608641 generator (`Generator`, *optional*):
@@ -658,7 +691,8 @@ def outputs(self):
658691# auto_docstring
659692class QwenImageControlNetCoreDenoiseStep (SequentialPipelineBlocks ):
660693 """
661- step that denoise noise into image for text2image task. It includes the denoise loop, as well as prepare the inputs (timesteps, latents, rope inputs etc.).
694+ step that denoise noise into image for text2image task. It includes the denoise loop, as well as prepare the inputs
695+ (timesteps, latents, rope inputs etc.).
662696
663697 Components:
664698
@@ -676,10 +710,15 @@ class QwenImageControlNetCoreDenoiseStep(SequentialPipelineBlocks):
676710 num_images_per_prompt (`int`, *optional*, defaults to 1):
677711 The number of images to generate per prompt.
678712 prompt_embeds (`None`):
713+ TODO: Add description.
679714 prompt_embeds_mask (`None`):
715+ TODO: Add description.
680716 negative_prompt_embeds (`None`, *optional*):
717+ TODO: Add description.
681718 negative_prompt_embeds_mask (`None`, *optional*):
719+ TODO: Add description.
682720 control_image_latents (`None`):
721+ TODO: Add description.
683722 height (`int`, *optional*):
684723 The height in pixels of the generated image.
685724 width (`int`, *optional*):
@@ -746,7 +785,8 @@ def outputs(self):
746785# auto_docstring
747786class QwenImageControlNetInpaintCoreDenoiseStep (SequentialPipelineBlocks ):
748787 """
749- Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for inpaint task.
788+ Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for inpaint
789+ task.
750790
751791 Components:
752792
@@ -764,16 +804,23 @@ class QwenImageControlNetInpaintCoreDenoiseStep(SequentialPipelineBlocks):
764804 num_images_per_prompt (`int`, *optional*, defaults to 1):
765805 The number of images to generate per prompt.
766806 prompt_embeds (`None`):
807+ TODO: Add description.
767808 prompt_embeds_mask (`None`):
809+ TODO: Add description.
768810 negative_prompt_embeds (`None`, *optional*):
811+ TODO: Add description.
769812 negative_prompt_embeds_mask (`None`, *optional*):
813+ TODO: Add description.
770814 height (`int`, *optional*):
771815 The height in pixels of the generated image.
772816 width (`int`, *optional*):
773817 The width in pixels of the generated image.
774818 image_latents (`None`, *optional*):
819+ TODO: Add description.
775820 processed_mask_image (`None`, *optional*):
821+ TODO: Add description.
776822 control_image_latents (`None`):
823+ TODO: Add description.
777824 latents (`Tensor`, *optional*):
778825 Pre-generated noisy latents for image generation.
779826 generator (`Generator`, *optional*):
@@ -840,7 +887,8 @@ def outputs(self):
840887# auto_docstring
841888class QwenImageControlNetImg2ImgCoreDenoiseStep (SequentialPipelineBlocks ):
842889 """
843- Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for img2img task.
890+ Before denoise step that prepare the inputs (timesteps, latents, rope inputs etc.) for the denoise step for img2img
891+ task.
844892
845893 Components:
846894
@@ -858,15 +906,21 @@ class QwenImageControlNetImg2ImgCoreDenoiseStep(SequentialPipelineBlocks):
858906 num_images_per_prompt (`int`, *optional*, defaults to 1):
859907 The number of images to generate per prompt.
860908 prompt_embeds (`None`):
909+ TODO: Add description.
861910 prompt_embeds_mask (`None`):
911+ TODO: Add description.
862912 negative_prompt_embeds (`None`, *optional*):
913+ TODO: Add description.
863914 negative_prompt_embeds_mask (`None`, *optional*):
915+ TODO: Add description.
864916 height (`int`, *optional*):
865917 The height in pixels of the generated image.
866918 width (`int`, *optional*):
867919 The width in pixels of the generated image.
868920 image_latents (`None`, *optional*):
921+ TODO: Add description.
869922 control_image_latents (`None`):
923+ TODO: Add description.
870924 latents (`Tensor`, *optional*):
871925 Pre-generated noisy latents for image generation.
872926 generator (`Generator`, *optional*):
@@ -1031,7 +1085,8 @@ def description(self):
10311085# auto_docstring
10321086class QwenImageInpaintDecodeStep (SequentialPipelineBlocks ):
10331087 """
1034- Decode step that decodes the latents to images and postprocess the generated image, optional apply the mask overally to the original image.
1088+ Decode step that decodes the latents to images and postprocess the generated image, optional apply the mask
1089+ overally to the original image.
10351090
10361091 Components:
10371092
@@ -1045,6 +1100,7 @@ class QwenImageInpaintDecodeStep(SequentialPipelineBlocks):
10451100 output_type (`str`, *optional*, defaults to pil):
10461101 Output format: 'pil', 'np', 'pt''.
10471102 mask_overlay_kwargs (`None`, *optional*):
1103+ TODO: Add description.
10481104
10491105 Outputs:
10501106 images (`List`):
@@ -1126,11 +1182,8 @@ class QwenImageAutoBlocks(SequentialPipelineBlocks):
11261182 Configs:
11271183
11281184 prompt_template_encode (default: <|im_start|>system
1129- Describe the image by detailing the color, shape, size, texture, quantity, text, spatial relationships of the objects and background:<|im_end|>
1130- <|im_start|>user
1131- {}<|im_end|>
1132- <|im_start|>assistant
1133- )
1185+ Describe the image by detailing the color, shape, size, texture, quantity, text, spatial relationships of the
1186+ objects and background:<|im_end|> <|im_start|>user {}<|im_end|> <|im_start|>assistant )
11341187
11351188 prompt_template_encode_start_idx (default: 34)
11361189
@@ -1160,9 +1213,13 @@ class QwenImageAutoBlocks(SequentialPipelineBlocks):
11601213 num_images_per_prompt (`int`, *optional*, defaults to 1):
11611214 The number of images to generate per prompt.
11621215 prompt_embeds (`None`):
1216+ TODO: Add description.
11631217 prompt_embeds_mask (`None`):
1218+ TODO: Add description.
11641219 negative_prompt_embeds (`None`, *optional*):
1220+ TODO: Add description.
11651221 negative_prompt_embeds_mask (`None`, *optional*):
1222+ TODO: Add description.
11661223 latents (`Tensor`):
11671224 Pre-generated noisy latents for image generation.
11681225 num_inference_steps (`int`):
@@ -1174,10 +1231,13 @@ class QwenImageAutoBlocks(SequentialPipelineBlocks):
11741231 **denoiser_input_fields (`Tensor`, *optional*):
11751232 conditional model inputs for the denoiser: e.g. prompt_embeds, negative_prompt_embeds, etc.
11761233 image_latents (`None`, *optional*):
1234+ TODO: Add description.
11771235 processed_mask_image (`None`, *optional*):
1236+ TODO: Add description.
11781237 strength (`float`, *optional*, defaults to 0.9):
11791238 Strength for img2img/inpainting.
11801239 control_image_latents (`None`, *optional*):
1240+ TODO: Add description.
11811241 control_guidance_start (`float`, *optional*, defaults to 0.0):
11821242 When to start applying ControlNet.
11831243 control_guidance_end (`float`, *optional*, defaults to 1.0):
@@ -1187,6 +1247,7 @@ class QwenImageAutoBlocks(SequentialPipelineBlocks):
11871247 output_type (`str`, *optional*, defaults to pil):
11881248 Output format: 'pil', 'np', 'pt''.
11891249 mask_overlay_kwargs (`None`, *optional*):
1250+ TODO: Add description.
11901251
11911252 Outputs:
11921253 images (`List`):
0 commit comments