You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: The size of tensor a (28) must match the size of tensor b (76) at non-singleton dimension 3 when Image size is changed from 608 to 224
#523
Open
imihassan opened this issue
Apr 29, 2022
· 4 comments
I got the below error. I am not able to resolve it. Can you help me to find out the problem.
Epoch 1/3: 0%| | 0/2 [00:03<?, ?img/s]
Traceback (most recent call last):
File "train.py", line 634, in <module>
train(model=model,
File "train.py", line 383, in train
loss, loss_xy, loss_wh, loss_obj, loss_cls, loss_l2 = criterion(bboxes_pred, bboxes)
File "C:\ProgramData\Anaconda3\envs\yolov4t\lib\site-packages\torch\nn\modules\module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "train.py", line 249, in forward
pred[..., 0] += self.grid_x[output_id]
RuntimeError: The size of tensor a (28) must match the size of tensor b (76) at non-singleton dimension 3
The text was updated successfully, but these errors were encountered:
Hi, I changed the image size in Cfg file to
I got the below error. I am not able to resolve it. Can you help me to find out the problem.
The text was updated successfully, but these errors were encountered: