Jingkang50 / OpenPSG

Benchmarking Panoptic Scene Graph Generation (PSG), ECCV'22
https://psgdataset.org
MIT License
407 stars 68 forks source link

[ImportError] - There is no 'INSTANCE_OFFSET' constant in 'mmdet.datasets.coco_panoptic' python file #105

Closed synacktraa closed 4 months ago

synacktraa commented 1 year ago
ImportError: cannot import name 'INSTANCE_OFFSET' from 'mmdet.datasets.coco_panoptic' (/usr/local/lib/python3.10/dist-packages/mmdet/datasets/coco_panoptic.py)

image

brianbscho commented 1 year ago

Probably your mmdet version isn't matching with the OpenPSG required one. You can find INSTANCE_OFFSET in below file.

https://github.com/open-mmlab/mmdetection/blob/2.x/mmdet/core/evaluation/panoptic_utils.py

INSTANCE_OFFSET = 1000