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

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 608 and 416 in dimension 2 at /pytorch/aten/src/TH/generic/THTensor.cpp:689 #87

Open
Naveennavik opened this issue Dec 13, 2019 · 1 comment

Comments

@Naveennavik
Copy link

May i know clear what to do to get rid of this error? @andy-yun @mickolka @carry-xz

@Ginbor
Copy link

Ginbor commented Dec 14, 2019

you can switch off the "get_different_scale" function in dataset.py line 63 OR you can set the the input image size (608, 416 ... ) before starting a new epoch, line 203 of train.py.
for example put the folowing text instead 198 and 199 lines in train.py:
init_width = (random.randint(0,9) + 10)*32
init_height = init_width.

bad solution, but works

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