Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMU datasets error #11

Open
NamhyeokKim opened this issue Aug 31, 2019 · 5 comments
Open

CMU datasets error #11

NamhyeokKim opened this issue Aug 31, 2019 · 5 comments

Comments

@NamhyeokKim
Copy link

I downloaded cmu dataset and reproduced the experiments

But some error has occurred in the upsampling step.

Do you know the reason?

documentation of nn.Upsample for details.
"See the documentation of nn.Upsample for details.".format(mode))
Traceback (most recent call last):
File "train.py", line 282, in
main()
File "train.py", line 246, in main
label_rz_conv5 = Variable(util.resize_label(label.data.cpu().numpy(),size=out_conv5_t0.data.cpu().numpy().shape[2:]).cuda())
File "/home/nhkim/Desktop/SceneChangeDet/src/utils/utils.py", line 228, in resize_label
label_resized[:,:,:,:] = interp(labelVar).data.numpy()
File "/home/nhkim/anaconda3/envs/cosimNet/lib/python2.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/home/nhkim/anaconda3/envs/cosimNet/lib/python2.7/site-packages/torch/nn/modules/upsampling.py", line 131, in forward
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)
File "/home/nhkim/anaconda3/envs/cosimNet/lib/python2.7/site-packages/torch/nn/functional.py", line 2509, in interpolate
raise NotImplementedError("Got 5D input, but bilinear mode needs 4D input")
NotImplementedError: Got 5D input, but bilinear mode needs 4D input

@Tangjunjun0925
Copy link

I got same problem. Have you solved this problem?

@whuzhangchi
Copy link

Hello, could you please provede me with the CMU dataset download link?

@abaybek
Copy link

abaybek commented Mar 27, 2020

I've got the same error. Does anybody understand the logic behind "resize_label" function?

I assume that an author wanted to resize a label image of size (batch_count x 3 x H x W) to the size of the outer layers. Is it make sense?

@Li-by
Copy link

Li-by commented Sep 13, 2020

Hello, could you please provede me with the CMU dataset download link?

could you please provede me with the CMU dataset download link? thanks so much

@basi880830
Copy link

Was it resolved later?

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

No branches or pull requests

6 participants