Skip to content

RuntimeError: Dimension out of range (expected to be in range of [-1, 0], but got 1) #41

Description

@zwr9cu

excuse me, I get this error when I train coco with pytorch==0.4 .1 python==3.5.2 , I change batch_size from 20 to 10.how can i solve the problem? thanks

File "/home/ubuntu/MyFiles/zwr/NeuralBabyTalk/misc/utils.py", line 496, in bbox_overlaps
max_bbox = gt_box.size(1)
RuntimeError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7fe36cfb1198>>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions