Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RuntimeError: output size is error #2

@gjy3035

Description

@gjy3035

I try to train the model, but the output size is error:

RuntimeError: input and target batch or spatial sizes don't match: target [4 x 512 x 1024], input [4 x 20 x 1534 x 3070] at /pytorch/torch/lib/THCUNN/generic/SpatialClassNLLCriterion.cu:24

[4 x 512 x 1024] is the size of label.
[4 x 20 x 1534 x 3070] is the size of model output.

How to solve it?

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