Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

The output shape is not correct #11

Open
Paranoidv opened this issue Jan 8, 2018 · 0 comments
Open

The output shape is not correct #11

Paranoidv opened this issue Jan 8, 2018 · 0 comments

Comments

@Paranoidv
Copy link

When I test picture from VOC2017,I get the wrong message 🔢 Ucat
Traceback (most recent call last):
File "tester.py", line 46, in
output = Colorize()(output)
File "/home/xiangjie/Documents/master_thesis/segmentation/pytorch-seg/transform.py", line 150, in call
color_image[0][mask] = self.cmap[label][0]
RuntimeError: inconsistent tensor size, expected tensor [256 x 256] and mask [256] to have the same number of elements, but got 65536 and 256 elements respectively at /pytorch/torch/lib/TH/generic/THTensorMath.c:138

I try to fix it.But did not work ,so ,someone can tell me how to fix this bug????
Thank you!!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant