Skip to content

HiDream pipeline update breaks downstream #11382

Closed
@vladmandic

Description

@vladmandic

Describe the bug

HiDream pipeline is currently broken on diffusers main branch due to PR #11296 that was merged few days ago.
it introduces a bad deprecation check which simply fails on main branch.

Reproduction

N/A

Logs

│ /home/vlado/dev/sdnext/venv/lib/python3.12/site-packages/diffusers/models/transformers/transformer_hidream_image.py:794 in forward                                                                                                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                                                                                                                                                                                  │
│   793 │   │   │   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)                                                                                                                                                                                                                                                                                                                                              │
│   795 │   │   │   encoder_hidden_states_t5 = encoder_hidden_states[0]                                                                                                                                                                                                                                                                                                                                                            │
│                                                                                                                                                                                                                                                                                                                                                                                                                                  │
│ /home/vlado/dev/sdnext/venv/lib/python3.12/site-packages/diffusers/utils/deprecation_utils.py:18 in deprecate                                                                                                                                                                                                                                                                                                                    │
│                                                                                                                                                                                                                                                                                                                                                                                                                                  │
│   17 │   │   if version.parse(version.parse(__version__).base_version) >= version.parse(version_name):                                                                                                                                                                                                                                                                                                                           │
│ ❱ 18 │   │   │   raise ValueError(                                                                                                                                                                                                                                                                                                                                                                                               │
│   19 │   │   │   │   f"The deprecation tuple {(attribute, version_name, message)} should be removed since diffusers'"                                                                                                                                                                                                                                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: The deprecation tuple ('encoder_hidden_states', '0.34.0', 'The `encoder_hidden_states` argument is deprecated. Please use `encoder_hidden_states_t5` and `encoder_hidden_states_llama3` instead.') should be removed since diffusers' version 0.34.0.dev0 is >= 0.34.0

System Info

diffusers==main

Who can help?

@yiyixuxu @sayakpaul @a-r-r-o-w

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions