pytorch-0.4-yolov3 icon indicating copy to clipboard operation
pytorch-0.4-yolov3 copied to clipboard

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

Open Naveennavik opened this issue 6 years ago • 1 comments

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

Naveennavik avatar Dec 13 '19 06:12 Naveennavik

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

Ginbor avatar Dec 14 '19 13:12 Ginbor