facebookresearch / detr

End-to-End Object Detection with Transformers
Apache License 2.0
13.63k stars 2.46k forks source link

ValueError: too many dimensions 'str' #489

Open kulkarnikeerti opened 2 years ago

kulkarnikeerti commented 2 years ago

Hi,

I get error in this line as ValueError: too many dimensions 'str'. I tried to search for the error, the reason I found is that the tensors can only have numerical data. But the image_id is a string. Can someone help me with this? Or am I doing something wrong? https://github.com/facebookresearch/detr/blob/091a817eca74b8b97e35e4531c1c39f89fbe38eb/datasets/coco_panoptic.py#L52