Skip to content

Support image resize #32

Closed

Description

@WikiChao

Hi, thank you for the great work!

When I run the computation, I get this error

RuntimeError: stack expects each tensor to be equal size, but got [3, 426, 640] at entry 0 and [3, 640, 586] at entry 1

It seems all images need to be resized to the same shape before batch processing. Can you include this in the code?

Thanks

Activity

  1. loki-veera commented on Jul 30, 2025

    @loki-veera
    Contributor

    Hello @WikiChao,
    Thank you for bringing this up.
    You are absolutely right, the error is due to the input images having different dimensions.
    We are aware of and working on this issue, and will incorporate it in future releases. In the meantime, as a workaround, we recommend resizing the images beforehand.

    Thanks.

  2. self-assigned this
    on Jul 30, 2025
  3. linked a pull request that will close this issueAdd resize #34on Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions