From 67b3a72bc61fc291e18115870768e90b2aa8ca5f Mon Sep 17 00:00:00 2001 From: Nijikadesu Date: Sun, 18 Jan 2026 15:11:41 +0800 Subject: [PATCH] [Fix] typo in comments --- .../pipelines/qwenimage/pipeline_qwenimage_controlnet.py | 8 ++++---- .../qwenimage/pipeline_qwenimage_controlnet_inpaint.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py b/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py index ce6fc974a56e..2487dee4e2cd 100644 --- a/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py +++ b/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet.py @@ -101,7 +101,7 @@ """ -# Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.calculate_shift +# Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.calculate_shift def calculate_shift( image_seq_len, base_seq_len: int = 256, @@ -239,7 +239,7 @@ def __init__( self.prompt_template_encode_start_idx = 34 self.default_sample_size = 128 - # Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.extract_masked_hidden + # Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.extract_masked_hidden def _extract_masked_hidden(self, hidden_states: torch.Tensor, mask: torch.Tensor): bool_mask = mask.bool() valid_lengths = bool_mask.sum(dim=1) @@ -248,7 +248,7 @@ def _extract_masked_hidden(self, hidden_states: torch.Tensor, mask: torch.Tensor return split_result - # Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.get_qwen_prompt_embeds + # Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.get_qwen_prompt_embeds def _get_qwen_prompt_embeds( self, prompt: Union[str, List[str]] = None, @@ -287,7 +287,7 @@ def _get_qwen_prompt_embeds( return prompt_embeds, encoder_attention_mask - # Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.encode_prompt + # Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.encode_prompt def encode_prompt( self, prompt: Union[str, List[str]], diff --git a/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py b/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py index 77d78a5ca7a1..0ee30e0abd81 100644 --- a/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py +++ b/src/diffusers/pipelines/qwenimage/pipeline_qwenimage_controlnet_inpaint.py @@ -74,7 +74,7 @@ """ -# Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.calculate_shift +# Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.calculate_shift def calculate_shift( image_seq_len, base_seq_len: int = 256, @@ -221,7 +221,7 @@ def __init__( self.prompt_template_encode_start_idx = 34 self.default_sample_size = 128 - # Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.extract_masked_hidden + # Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.extract_masked_hidden def _extract_masked_hidden(self, hidden_states: torch.Tensor, mask: torch.Tensor): bool_mask = mask.bool() valid_lengths = bool_mask.sum(dim=1) @@ -230,7 +230,7 @@ def _extract_masked_hidden(self, hidden_states: torch.Tensor, mask: torch.Tensor return split_result - # Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.get_qwen_prompt_embeds + # Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.get_qwen_prompt_embeds def _get_qwen_prompt_embeds( self, prompt: Union[str, List[str]] = None, @@ -269,7 +269,7 @@ def _get_qwen_prompt_embeds( return prompt_embeds, encoder_attention_mask - # Coped from diffusers.pipelines.qwenimage.pipeline_qwenimage.encode_prompt + # Copied from diffusers.pipelines.qwenimage.pipeline_qwenimage.encode_prompt def encode_prompt( self, prompt: Union[str, List[str]],