zzndream / ShipRSImageNet

ShipRSImageNet is the largest ship detection dataset in the Computer Vision and Earth Vision communities.
76 stars 10 forks source link

ImportError: cannot import name 'Config' from 'mmcv' #3

Closed luogyu7 closed 1 year ago

luogyu7 commented 1 year ago

(open-mmlab) l1@l1:~/ShipRSImageNet/ShipRSImageNet/mmdetection2.11-ShipRSImageNet$ python tools/train.py configs/ShipRSImageNet/faster_rcnn/faster_rcnn_r50_fpn_100e_ShipRSImageNet_Level0.py Traceback (most recent call last): File "tools/train.py", line 10, in from mmcv import Config, DictAction ImportError: cannot import name 'Config' from 'mmcv' (/home/l1/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/init.py)

luogyu7 commented 1 year ago

When I run the command "python tools/train.py configs/ShipRSImageNet/faster_rcnn/faster_rcnn_r50_fpn_100e_ShipRSImageNet_Level0.py" in the directory "~/ShipRSImageNet/ShipRSImageNet/mmdetection2.11-ShipRSImageNet" report the error :"ImportError: cannot import name 'Config' from 'mmcv' ".

luogyu7 commented 1 year ago

I solved.