mmsegmentation
mmsegmentation copied to clipboard
IndexError: The shape of the mask [400, 592] at index 0 does not match the shape of the indexed tensor [220, 325] at index 0
when I was testing swin transformer using my dateset, I got the above error. During training, the model trained efficiently without any errors.
Traceback (most recent call last):
File "tools/train.py", line 104, in
I have encountered the same problem. Have you resolved it?
I have encountered the same problem. Have you resolved it?
I have solved the problem, it is because the sizes of images and masks are different! OMG
I have solved the problem, it is because the sizes of images and masks are different! OMG
What was the solution? Is there any config/code change required?
I have solved the problem, it is because the sizes of images and masks are different! OMG
What was the solution? Is there any config/code change required?
No, it is just because the pictures of images and masks have different sizes, I have resized them to be the same.