Skip to content

Scaling Error when training using different ratio size of image in batch_size > 1 #8

@leocd91

Description

@leocd91

Error in Trainer.train()
RuntimeError: stack expects each tensor to be equal size, but got [3, 200, 257] at entry 0 and [3, 200, 341] at entry 2
When using set of image that contain different kind of ratio (for example 4:3 with 16:9).

Running in batch_size = 1 is fine. But larger than that, make this error.

Sorry for troubling you haha.
It's not really a bug I guess, I can solve it by resizing the train image myself, just letting you know if you want to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions