graph-rcnn.pytorch
graph-rcnn.pytorch copied to clipboard
Error: index 0 is out of bounds for dimension 0 with size 0
When I test with full VG dataset, one error appears:
Traceback (most recent call last):
File "main.py", line 129, in
It seems that for some images, list 'num_rels_im' is empty...
Could you please teach me how to figure out this issue? Thanks!
I had the the same issue. Turned out my custom dataset had 0 region proposal pairs. That is because all the non overlapping boxes were filtered by
def _get_proposal_pairs(self, proposals)
possibily for performance reasons. However my use case has relationships among objects that don't overlap. Hope that helps.