Skip to content

Bug: Loading diffusers-trained Qwen-Image-Edit weights causes unexpected behavior #20

@arturia-Xayah

Description

@arturia-Xayah

Hi, thank you for your great work on this repository.
We noticed that your code uses a fixed max_sequence_length to support batch processing. However, in the diffusers implementation of Qwen Image Edit, max_sequence_length is determined dynamically based on the maximum token length.
This discrepancy leads to unexpected results when attempting to load weights trained with diffusers using your codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions