Skip to content

Commit ba02f6b

Browse files
committed
up
1 parent 9e8b725 commit ba02f6b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/diffusers/modular_pipelines/qwenimage/encoders.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,6 @@ def __call__(self, components: QwenImageModularPipeline, state: PipelineState):
662662
class QwenImageEditPlusTextEncoderStep(QwenImageEditTextEncoderStep):
663663
model_name = "qwenimage"
664664

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-
669665
@property
670666
def expected_configs(self) -> List[ConfigSpec]:
671667
return [
@@ -680,18 +676,6 @@ def expected_configs(self) -> List[ConfigSpec]:
680676
ConfigSpec(name="prompt_template_encode_start_idx", default=64),
681677
]
682678

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-
695679
@torch.no_grad()
696680
def __call__(self, components: QwenImageModularPipeline, state: PipelineState):
697681
block_state = self.get_block_state(state)
@@ -720,6 +704,7 @@ def __call__(self, components: QwenImageModularPipeline, state: PipelineState):
720704
prompt=negative_prompt,
721705
image=block_state.resized_image,
722706
prompt_template_encode=components.config.prompt_template_encode,
707+
img_template_encode=components.config.img_template_encode,
723708
prompt_template_encode_start_idx=components.config.prompt_template_encode_start_idx,
724709
device=device,
725710
)

0 commit comments

Comments
 (0)