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

Mismatch error #2

Open
Shaunlipy opened this issue Mar 21, 2018 · 4 comments
Open

Mismatch error #2

Shaunlipy opened this issue Mar 21, 2018 · 4 comments
Labels

Comments

@Shaunlipy
Copy link

Hi, I implement the code, but for the fcn.py on line 145. It says:
"The size of tensor a (44) must match the size of tensor b (45) at non-singleton dimension 2"

I found the score shape is [1, 512, 44, 60] and the x4 shape is [1, 512, 45, 60]

Curious how would that happen?

Thanks

@pochih
Copy link
Owner

pochih commented Mar 29, 2018

Can you report the dataset you used?
Thanks!

@Bing1002
Copy link

Bing1002 commented May 3, 2018

Hi,

I met the same question and I used camvid dataset. I don't know why is it? @brianhuang1019

@andrecavalcante
Copy link

For some reason, the attribute self.crop of the train dataset instance is reset to False when the validation dataset instance is created. Comment line #44 of init() method of Class CamVidDataset to solve this issue.

@Water2style
Copy link

For some reason, the attribute self.crop of the train dataset instance is reset to False when the validation dataset instance is created. Comment line #44 of init() method of Class CamVidDataset to solve this issue.

THANKS! after commenting ###self.crop = False,solve this issue. What bad influences will happen to our model?

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

No branches or pull requests

5 participants