Skip to content

Commit 448c72a

Browse files
authored
[HiDream] move deprecation to 0.35.0 (#11384)
up
1 parent f108ad8 commit 448c72a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/diffusers/models/transformers/transformer_hidream_image.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -791,15 +791,15 @@ def forward(
791791

792792
if encoder_hidden_states is not None:
793793
deprecation_message = "The `encoder_hidden_states` argument is deprecated. Please use `encoder_hidden_states_t5` and `encoder_hidden_states_llama3` instead."
794-
deprecate("encoder_hidden_states", "0.34.0", deprecation_message)
794+
deprecate("encoder_hidden_states", "0.35.0", deprecation_message)
795795
encoder_hidden_states_t5 = encoder_hidden_states[0]
796796
encoder_hidden_states_llama3 = encoder_hidden_states[1]
797797

798798
if img_ids is not None and img_sizes is not None and hidden_states_masks is None:
799799
deprecation_message = (
800800
"Passing `img_ids` and `img_sizes` with unpachified `hidden_states` is deprecated and will be ignored."
801801
)
802-
deprecate("img_ids", "0.34.0", deprecation_message)
802+
deprecate("img_ids", "0.35.0", deprecation_message)
803803

804804
if hidden_states_masks is not None and (img_ids is None or img_sizes is None):
805805
raise ValueError("if `hidden_states_masks` is passed, `img_ids` and `img_sizes` must also be passed.")

src/diffusers/pipelines/hidream_image/pipeline_hidream_image.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -823,13 +823,13 @@ def __call__(
823823

824824
if prompt_embeds is not None:
825825
deprecation_message = "The `prompt_embeds` argument is deprecated. Please use `prompt_embeds_t5` and `prompt_embeds_llama3` instead."
826-
deprecate("prompt_embeds", "0.34.0", deprecation_message)
826+
deprecate("prompt_embeds", "0.35.0", deprecation_message)
827827
prompt_embeds_t5 = prompt_embeds[0]
828828
prompt_embeds_llama3 = prompt_embeds[1]
829829

830830
if negative_prompt_embeds is not None:
831831
deprecation_message = "The `negative_prompt_embeds` argument is deprecated. Please use `negative_prompt_embeds_t5` and `negative_prompt_embeds_llama3` instead."
832-
deprecate("negative_prompt_embeds", "0.34.0", deprecation_message)
832+
deprecate("negative_prompt_embeds", "0.35.0", deprecation_message)
833833
negative_prompt_embeds_t5 = negative_prompt_embeds[0]
834834
negative_prompt_embeds_llama3 = negative_prompt_embeds[1]
835835

0 commit comments

Comments
 (0)