Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
synacktraa opened this issue Jun 20, 2023 · 1 comment

Comments

@synacktraa
Copy link

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
Copy link

brianbscho commented Aug 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants