WXinlong / SOLO

SOLO and SOLOv2 for instance segmentation, ECCV 2020 & NeurIPS 2020.
Other
1.71k stars 307 forks source link

ImportError: cannot import name 'coco_eval' from 'mmdet.core' #238

Open Miky9527 opened 1 year ago

Miky9527 commented 1 year ago

I want to inference my local data using pretrained model, but i got some ImportError:
from mmdet.core import coco_eval, results2json, wrap_fp16_model, tensor2imgs, get_classes ImportError: cannot import name 'coco_eval' from 'mmdet.core' (/home/lijiangtao/anaconda3/envs/mmlab1/lib/python3.9/site-packages/mmdet-2.23.0-py3.9.egg/mmdet/core/init.py).

anyone here can help me solve this problem. THANKS !!