Skip to content

Lumina Image 2.0 minor issue #10782

Closed

Description

@nitinmukesh

Describe the bug

Error during inference: height and width have to be divisible by 8 but are 1080 and 1920

Should be 16 instead of 8.
Minor issue, can be fixed later.

Reproduction

Simply pass width = 1920 and height=1080

Logs

Error during inference: `height` and `width` have to be divisible by 8 but are 1080 and 1920.

System Info

N.A.

Who can help?

No response

Activity

  1. nitinmukesh commented on Feb 12, 2025

    @nitinmukesh
    Author

    I think fix could be
    diffusers/src/diffusers/pipelines/lumina2/pipeline_lumina2.py

    Line: 382

    Replace
    raise ValueError(f"height and width have to be divisible by 8 but are {height} and {width}.")

    with
    raise ValueError(f"height and width have to be divisible by {(self.vae_scale_factor * 2)} but are {height} and {width}.")

    I think the issue is with template which is used for new pipeline creation and hence some new pipelines get this issue.

  2. yiyixuxu commented on Feb 12, 2025

    @yiyixuxu
    Collaborator

    hi @nitinmukesh, sounds good! feel free to send a PR!
    otherwise I will fix in #10776

  3. nitinmukesh commented on Feb 13, 2025

    @nitinmukesh
    Author

    Before I could start, PR is created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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