Closed luogyu7 closed 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' ".
I solved.
(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)