Skip to content

Question about calculate_dimensions #2

@julien-blanchon

Description

@julien-blanchon

Hello,

I'm trying to understand the codebase.
I see that you have changed the default behaviour of Qwen Image here

calculated_width, calculated_height, _ = calculate_dimensions(max_area, width / height)

In the diffusers implementation 1024 is enforce by default and here we are instead using the resolution we are training on.
I'm also implemented this change on the official flow-grpo codebase to see how it translate and it seems to drastically boost the sampling and training speed, as well as mitigating the common zoom/crop effect when training qwen on resolution that are not 1024.

I'm still waiting to see if the training will actually converge (with flow-grpo + this specific change only) but I'm quite curious to know if you have done abblation on this, and what motivated this change ...

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