RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size

This is what I get, when I want to run a model of pytorch.

RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size

The model is for instance segmentation. Why I'm getting this?

pytorch
3 votesJO218.00
0 Answers
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?