Skip to content

Kontext pipeline resizing image even if it is within PREFERRED_KONTEXT_RESOLUTIONS #11942

@nitinmukesh

Description

@nitinmukesh

Describe the bug

My assumption is, if resolution of image matches one of PREFERRED_KONTEXT_RESOLUTIONS, pipeline should not resize the input image.

Even though I use the image with one of the preferred resolution, the pipeline is resizing the image.

PREFERRED_KONTEXT_RESOLUTIONS = [
(672, 1568),
(688, 1504),
(720, 1456),
(752, 1392),
(800, 1328),
(832, 1248),
(880, 1184),
(944, 1104),
(1024, 1024),
(1104, 944),
(1184, 880),
(1248, 832),
(1328, 800),
(1392, 752),
(1456, 720),
(1504, 688),
(1568, 672),
]

Reproduction

I chose 672x1568 image for inference

Image

Logs

Generation `height` and `width` have been adjusted to 1552 and 656 to fit the model requirements.
Image

System Info

Latest diffusers

Who can help?

@a-r-r-o-w

Just want to quickly confirm if it's an issue or this is how it's supposed to work.

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