@@ -662,10 +662,6 @@ def __call__(self, components: QwenImageModularPipeline, state: PipelineState):
662
662
class QwenImageEditPlusTextEncoderStep (QwenImageEditTextEncoderStep ):
663
663
model_name = "qwenimage"
664
664
665
- @property
666
- def description (self ) -> str :
667
- return "Text Encoder step that processes both prompt and image together to generate text embeddings for guiding image generation.\n "
668
-
669
665
@property
670
666
def expected_configs (self ) -> List [ConfigSpec ]:
671
667
return [
@@ -680,18 +676,6 @@ def expected_configs(self) -> List[ConfigSpec]:
680
676
ConfigSpec (name = "prompt_template_encode_start_idx" , default = 64 ),
681
677
]
682
678
683
- @staticmethod
684
- def check_inputs (prompt , negative_prompt ):
685
- if not isinstance (prompt , str ) and not isinstance (prompt , list ):
686
- raise ValueError (f"`prompt` has to be of type `str` or `list` but is { type (prompt )} " )
687
-
688
- if (
689
- negative_prompt is not None
690
- and not isinstance (negative_prompt , str )
691
- and not isinstance (negative_prompt , list )
692
- ):
693
- raise ValueError (f"`negative_prompt` has to be of type `str` or `list` but is { type (negative_prompt )} " )
694
-
695
679
@torch .no_grad ()
696
680
def __call__ (self , components : QwenImageModularPipeline , state : PipelineState ):
697
681
block_state = self .get_block_state (state )
@@ -720,6 +704,7 @@ def __call__(self, components: QwenImageModularPipeline, state: PipelineState):
720
704
prompt = negative_prompt ,
721
705
image = block_state .resized_image ,
722
706
prompt_template_encode = components .config .prompt_template_encode ,
707
+ img_template_encode = components .config .img_template_encode ,
723
708
prompt_template_encode_start_idx = components .config .prompt_template_encode_start_idx ,
724
709
device = device ,
725
710
)
0 commit comments