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

Train SegNet #46

Open
muralabmahmuds opened this issue Aug 21, 2018 · 2 comments
Open

Train SegNet #46

muralabmahmuds opened this issue Aug 21, 2018 · 2 comments

Comments

@muralabmahmuds
Copy link

Hi @zijundeng and everybody,

First of all, thank you for your codes. I am a very beginner in semantic segmentation area.

I want to run your codes using SegNet model, but I didn't find the "train.py" for SegNet. Then, I simply try to modify "train.py" from folder "train/cityscapes-psp_net" and change the net in line 42.
from : net = PSPNet(num_classes=cityscapes.num_classes)
to be : net = SegNet(num_classes=cityscapes.num_classes)

But, I found this error and still cannot solve the problem.
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 31 and 32 in dimension 2 at /opt/conda/conda-bld/pytorch_1525909934016/work/aten/src/THC/generic/THCTensorMath.cu:111

Please, kindly your suggestion.
Thank you.

@zijundeng
Copy link
Owner

zijundeng commented Aug 21, 2018 via email

@muralabmahmuds
Copy link
Author

Dear @zijundeng Thank you for your kind reply.
I am searching about "torch.nn.functional.upsample" but I still could not understand how to use it and where should I put it to solve my above problem.
Would you give an example of how to follow your suggestion regarding "torch.nn.functional.upsample", please?
Thank you very much!

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

2 participants