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

[Bug] FileNotFoundError when using mmengine.hub.get_model #658

Closed
zengyh1900 opened this issue Nov 1, 2022 · 1 comment · Fixed by #659
Closed

[Bug] FileNotFoundError when using mmengine.hub.get_model #658

zengyh1900 opened this issue Nov 1, 2022 · 1 comment · Fixed by #659
Assignees

Comments

@zengyh1900
Copy link
Collaborator

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. I have read the FAQ documentation but cannot get the expected help.
  3. The bug has not been fixed in the latest version.

Describe the bug

I follow and run the same code in the documentation: https://mmengine.readthedocs.io/zh_CN/latest/tutorials/config.html#id12
but it reports FileNotFoundError.

Reproduction

  1. python example.py
from mmengine.hub import get_model
model = get_model(
    'mmdet::faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py', pretrained=True)
print(type(model))
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
    Not

  2. What dataset did you use?
    Not applied.

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
  2. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source]
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

openmim 0.3.2
mmcv 2.0.0rc1
mmengine 0.2.0
mmdet 3.0.0rc2

Error traceback
If applicable, paste the error trackback here.

Traceback (most recent call last):
  File "/home/xxx/xxx/workspace/mmengine/mmengine/hub/hub.py", line 40, in get_config
    cfg_meta = _get_cfg_metainfo(package_path, cfg_path)
  File "/home/xxx/xxx/workspace/mmengine/mmengine/config/utils.py", line 59, in _get_cfg_metainfo
    raise ValueError(f'Expected configs: {cfg_dict.keys()}, but got '
ValueError: Expected configs: dict_keys(['atss/atss_r50_fpn_1x_coco.py', 'atss/atss_r101_fpn_1x_coco.py', 'autoassign/autoassign_r50-caffe_fpn_1x_coco.py', 'carafe/faster-rcnn_r50_fpn-carafe_1x_coco.py', 'carafe/mask-rcnn_r50_fpn-carafe_1x_coco.py', 'cascade_rcnn/cascade-rcnn_r50-caffe_fpn_1x_coco.py', 'cascade_rcnn/cascade-rcnn_r50_fpn_1x_coco.py', 'cascade_rcnn/cascade-rcnn_r50_fpn_20e_coco.py', 'cascade_rcnn/cascade-rcnn_r101-caffe_fpn_1x_coco.py', 'cascade_rcnn/cascade-rcnn_r101_fpn_1x_coco.py', 'cascade_rcnn/cascade-rcnn_r101_fpn_20e_coco.py', 'cascade_rcnn/cascade-rcnn_x101-32x4d_fpn_1x_coco.py', 'cascade_rcnn/cascade-rcnn_x101-32x4d_fpn_20e_coco.py', 'cascade_rcnn/cascade-rcnn_x101-64x4d_fpn_1x_coco.py', 'cascade_rcnn/cascade-rcnn_x101_64x4d_fpn_20e_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r50-caffe_fpn_1x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r50_fpn_1x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r50_fpn_20e_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r101-caffe_fpn_1x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r101_fpn_1x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r101_fpn_20e_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-32x4d_fpn_1x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-32x4d_fpn_20e_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-64x4d_fpn_1x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-64x4d_fpn_20e_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r50-caffe_fpn_ms-3x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r50_fpn_ms-3x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r101-caffe_fpn_ms-3x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_r101_fpn_ms-3x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-32x4d_fpn_ms-3x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-32x8d_fpn_ms-3x_coco.py', 'cascade_rcnn/cascade-mask-rcnn_x101-64x4d_fpn_ms-3x_coco.py', 'cascade_rpn/cascade-rpn_fast-rcnn_r50-caffe_fpn_1x_coco.py', 'cascade_rpn/cascade-rpn_faster-rcnn_r50-caffe_fpn_1x_coco.py', 'centernet/centernet_r18-dcnv2_8xb16-crop512-140e_coco.py', 'centernet/centernet_r18_8xb16-crop512-140e_coco.py', 'centripetalnet/centripetalnet_hourglass104_16xb6-crop511-210e-mstest_coco.py', 'cornernet/cornernet_hourglass104_10xb5-crop511-210e-mstest_coco.py', 'cornernet/cornernet_hourglass104_8xb6-210e-mstest_coco.py', 'cornernet/cornernet_hourglass104_32xb3-210e-mstest_coco.py', 'convnext/mask-rcnn_convnext-t-p4-w7_fpn_amp-ms-crop-3x_coco.py', 'convnext/cascade-mask-rcnn_convnext-t-p4-w7_fpn_4conv1fc-giou_amp-ms-crop-3x_coco.py', 'convnext/cascade-mask-rcnn_convnext-s-p4-w7_fpn_4conv1fc-giou_amp-ms-crop-3x_coco.py', 'dcn/faster-rcnn_r50-dconv-c3-c5_fpn_1x_coco.py', 'dcn/faster-rcnn_r50_fpn_dpool_1x_coco.py', 'dcn/faster-rcnn_r101-dconv-c3-c5_fpn_1x_coco.py', 'dcn/faster-rcnn_x101-32x4d-dconv-c3-c5_fpn_1x_coco.py', 'dcn/mask-rcnn_r50-dconv-c3-c5_fpn_1x_coco.py', 'dcn/mask-rcnn_r50-dconv-c3-c5_fpn_amp-1x_coco.py', 'dcn/mask-rcnn_r101-dconv-c3-c5_fpn_1x_coco.py', 'dcn/cascade-rcnn_r50-dconv-c3-c5_fpn_1x_coco.py', 'dcn/cascade-rcnn_r101-dconv-c3-c5_fpn_1x_coco.py', 'dcn/cascade-mask-rcnn_r50-dconv-c3-c5_fpn_1x_coco.py', 'dcn/cascade-mask-rcnn_r101-dconv-c3-c5_fpn_1x_coco.py', 'dcn/cascade-mask-rcnn_x101-32x4d-dconv-c3-c5_fpn_1x_coco.py', 'dcn/faster-rcnn_r50-mdconv-c3-c5_fpn_1x_coco.py', 'dcn/faster-rcnn_r50-mdconv-group4-c3-c5_fpn_1x_coco.py', 'dcn/faster-rcnn_r50_fpn_mdpool_1x_coco.py', 'dcn/mask-rcnn_r50-mdconv-c3-c5_fpn_1x_coco.py', 'dcn/mask-rcnn_r50-mdconv-c3-c5_fpn_amp-1x_coco.py', 'ddod/ddod_r50_fpn_1x_coco.py', 'deformable_detr/deformable-detr_r50_16xb2-50e_coco.py', 'deformable_detr/deformable-detr_refine_r50_16xb2-50e_coco.py', 'deformable_detr/deformable-detr_refine_twostage_r50_16xb2-50e_coco.py', 'detectors/cascade-rcnn_r50-rfp_1x_coco.py', 'detectors/cascade-rcnn_r50-sac_1x_coco.py', 'detectors/detectors_cascade-rcnn_r50_1x_coco.py', 'detectors/htc_r50-rfp_1x_coco.py', 'detectors/htc_r50-sac_1x_coco.py', 'detectors/detectors_htc-r50_1x_coco.py', 'detr/detr_r50_8xb2-150e_coco.py', 'double_heads/dh-faster-rcnn_r50_fpn_1x_coco.py', 'dyhead/atss_r50-caffe_fpn_dyhead_1x_coco.py', 'dyhead/atss_r50_fpn_dyhead_1x_coco.py', 'dyhead/atss_swin-l-p4-w12_fpn_dyhead_ms-2x_coco.py', 'dynamic_rcnn/dynamic-rcnn_r50_fpn_1x_coco.py', 'efficientnet/retinanet_effb3_fpn_8xb4-crop896-1x_coco.py', 'empirical_attention/faster-rcnn_r50-attn1111_fpn_1x_coco.py', 'empirical_attention/faster-rcnn_r50-attn0010_fpn_1x_coco.py', 'empirical_attention/faster-rcnn_r50-attn1111-dcn_fpn_1x_coco.py', 'empirical_attention/faster-rcnn_r50-attn0010-dcn_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe_c4-1x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe-c4_ms-1x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe-dc5_1x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_amp-1x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_2x_coco.py', 'faster_rcnn/faster-rcnn_r101-caffe_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_r101_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_r101_fpn_2x_coco.py', 'faster_rcnn/faster-rcnn_x101-32x4d_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_x101-32x4d_fpn_2x_coco.py', 'faster_rcnn/faster-rcnn_x101-64x4d_fpn_1x_coco.py', 'faster_rcnn/faster-rcnn_x101-64x4d_fpn_2x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_iou_1x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_giou_1x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_bounded-iou_1x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe-dc5_ms-1x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe-dc5_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe_fpn_ms-2x_coco.py', 'faster_rcnn/faster-rcnn_r50-caffe_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_r50_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_r101-caffe_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_r101_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_x101-32x4d_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_x101-32x8d_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_x101-64x4d_fpn_ms-3x_coco.py', 'faster_rcnn/faster-rcnn_r50-tnr-pre_fpn_1x_coco.py', 'fcos/fcos_r50-caffe_fpn_gn-head_1x_coco.py', 'fcos/fcos_r50-caffe_fpn_gn-head-center-normbbox-centeronreg-giou_1x_coco.py', 'fcos/fcos_r50-dcn-caffe_fpn_gn-head-center-normbbox-centeronreg-giou_1x_coco.py', 'fcos/fcos_r101-caffe_fpn_gn-head-1x_coco.py', 'fcos/fcos_r50-caffe_fpn_gn-head_ms-640-800-2x_coco.py', 'fcos/fcos_r101-caffe_fpn_gn-head_ms-640-800-2x_coco.py', 'fcos/fcos_x101-64x4d_fpn_gn-head_ms-640-800-2x_coco.py', 'foveabox/fovea_r50_fpn_4xb4-1x_coco.py', 'foveabox/fovea_r50_fpn_4xb4-2x_coco.py', 'foveabox/fovea_r50_fpn_gn-head-align_4xb4-2x_coco.py', 'foveabox/fovea_r50_fpn_gn-head-align_ms-640-800-4xb4-2x_coco.py', 'foveabox/fovea_r101_fpn_4xb4-1x_coco.py', 'foveabox/fovea_r101_fpn_4xb4-2x_coco.py', 'foveabox/fovea_r101_fpn_gn-head-align_4xb4-2x_coco.py', 'foveabox/fovea_r101_fpn_gn-head-align_ms-640-800-4xb4-2x_coco.py', 'fpg/faster-rcnn_r50_fpg_crop640-50e_coco.py', 'fpg/faster-rcnn_r50_fpg-chn128_crop640-50e_coco.py', 'fpg/mask-rcnn_r50_fpg_crop640-50e_coco.py', 'fpg/mask-rcnn_r50_fpg-chn128_crop640-50e_coco.py', 'fpg/retinanet_r50_fpg_crop640_50e_coco.py', 'fpg/retinanet_r50_fpg-chn128_crop640_50e_coco.py', 'free_anchor/freeanchor_r50_fpn_1x_coco.py', 'free_anchor/freeanchor_r101_fpn_1x_coco.py', 'free_anchor/freeanchor_x101-32x4d_fpn_1x_coco.py', 'fsaf/fsaf_r50_fpn_1x_coco.py', 'fsaf/fsaf_r101_fpn_1x_coco.py', 'fsaf/fsaf_x101-64x4d_fpn_1x_coco.py', 'gcnet/mask-rcnn_r50-gcb-r16-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r50-gcb-r4-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r101-gcb-r16-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r101-gcb-r4-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r50-syncbn_fpn_1x_coco.py', 'gcnet/mask-rcnn_r50-syncbn-gcb-r16-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r50-syncbn-gcb-r4-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r101-syncbn_fpn_1x_coco.py', 'gcnet/mask-rcnn_r101-syncbn-gcb-r16-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_r101-syncbn-gcb-r4-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_x101-32x4d-syncbn_fpn_1x_coco.py', 'gcnet/mask-rcnn_x101-32x4d-syncbn-gcb-r16-c3-c5_fpn_1x_coco.py', 'gcnet/mask-rcnn_x101-32x4d-syncbn-gcb-r4-c3-c5_fpn_1x_coco.py', 'gcnet/cascade-mask-rcnn_x101-32x4d-syncbn_fpn_1x_coco.py', 'gcnet/cascade-mask-rcnn_x101-32x4d-syncbn-r16-gcb-c3-c5_fpn_1x_coco.py', 'gcnet/cascade-mask-rcnn_x101-32x4d-syncbn-r4-gcb-c3-c5_fpn_1x_coco.py', 'gcnet/cascade-mask-rcnn_x101-32x4d-syncbn-dconv-c3-c5_fpn_1x_coco.py', 'gcnet/cascade-mask-rcnn_x101-32x4d-syncbn-dconv-c3-c5-r16-gcb-c3-c5_fpn_1x_coco.py', 'gcnet/cascade-mask-rcnn_x101-32x4d-syncbn-dconv-c3-c5-r4-gcb-c3-c5_fpn_1x_coco.py', 'gfl/gfl_r50_fpn_1x_coco.py', 'gfl/gfl_r50_fpn_ms-2x_coco.py', 'gfl/gfl_r101_fpn_ms-2x_coco.py', 'gfl/gfl_r101-dconv-c3-c5_fpn_ms-2x_coco.py', 'gfl/gfl_x101-32x4d_fpn_ms-2x_coco.py', 'gfl/gfl_x101-32x4d-dconv-c4-c5_fpn_ms-2x_coco.py', 'ghm/retinanet_r50_fpn_ghm-1x_coco.py', 'ghm/retinanet_r101_fpn_ghm-1x_coco.py', 'ghm/retinanet_x101-32x4d_fpn_ghm-1x_coco.py', 'ghm/retinanet_x101-64x4d_fpn_ghm-1x_coco.py', 'gn/mask-rcnn_r50_fpn_gn-all_2x_coco.py', 'gn/mask-rcnn_r50_fpn_gn-all_3x_coco.py', 'gn/mask-rcnn_r101_fpn_gn-all_2x_coco.py', 'gn/mask-rcnn_r101_fpn_gn-all_3x_coco.py', 'gn/mask-rcnn_r50-contrib_fpn_gn-all_2x_coco.py', 'gn/mask-rcnn_r50-contrib_fpn_gn-all_3x_coco.py', 'gn%2Bws/faster-rcnn_r50_fpn_gn-ws-all_1x_coco.py', 'gn%2Bws/faster-rcnn_r101_fpn_gn-ws-all_1x_coco.py', 'gn%2Bws/faster-rcnn_x50-32x4d_fpn_gn-ws-all_1x_coco.py', 'gn%2Bws/faster-rcnn_x101-32x4d_fpn_gn-ws-all_1x_coco.py', 'gn%2Bws/mask-rcnn_r50_fpn_gn-ws-all_2x_coco.py', 'gn%2Bws/mask-rcnn_r101_fpn_gn-ws-all_2x_coco.py', 'gn%2Bws/mask-rcnn_x50-32x4d_fpn_gn-ws-all_2x_coco.py', 'gn%2Bws/mask-rcnn_x101-32x4d_fpn_gn-ws-all_2x_coco.py', 'gn%2Bws/mask-rcnn_r50_fpn_gn-ws-all_20-23-24e_coco.py', 'gn%2Bws/mask-rcnn_r101_fpn_gn-ws-all_20-23-24e_coco.py', 'gn%2Bws/mask-rcnn_x50-32x4d_fpn_gn-ws-all_20-23-24e_coco.py', 'gn%2Bws/mask-rcnn_x101-32x4d_fpn_gn-ws-all_20-23-24e_coco.py', 'grid_rcnn/grid-rcnn_r50_fpn_gn-head_2x_coco.py', 'grid_rcnn/grid-rcnn_r101_fpn_gn-head_2x_coco.py', 'grid_rcnn/grid-rcnn_x101-32x4d_fpn_gn-head_2x_coco.py', 'grid_rcnn/grid-rcnn_x101-64x4d_fpn_gn-head_2x_coco.py', 'groie/faste-rcnn_r50_fpn_groie_1x_coco.py', 'groie/grid-rcnn_r50_fpn_gn-head-groie_1x_coco.py', 'groie/mask-rcnn_r50_fpn_groie_1x_coco.py', 'groie/mask-rcnn_r50_fpn_syncbn-r4-gcb-c3-c5-groie_1x_coco.py', 'groie/mask-rcnn_r101_fpn_syncbn-r4-gcb_c3-c5-groie_1x_coco.py', 'guided_anchoring/ga-rpn_r50-caffe_fpn_1x_coco.py', 'guided_anchoring/ga-rpn_r101-caffe_fpn_1x_coco.py', 'guided_anchoring/ga-rpn_x101-32x4d_fpn_1x_coco.py', 'guided_anchoring/ga-rpn_x101-64x4d_fpn_1x_coco.py', 'guided_anchoring/ga-faster-rcnn_r50-caffe_fpn_1x_coco.py', 'guided_anchoring/ga-faster-rcnn_r101-caffe_fpn_1x_coco.py', 'guided_anchoring/ga-faster-rcnn_x101-32x4d_fpn_1x_coco.py', 'guided_anchoring/ga-faster-rcnn_x101-64x4d_fpn_1x_coco.py', 'guided_anchoring/ga-retinanet_r50-caffe_fpn_1x_coco.py', 'guided_anchoring/ga-retinanet_r101-caffe_fpn_1x_coco.py', 'guided_anchoring/ga-retinanet_x101-32x4d_fpn_1x_coco.py', 'guided_anchoring/ga-retinanet_x101-64x4d_fpn_1x_coco.py', 'hrnet/faster-rcnn_hrnetv2p-w18-1x_coco.py', 'hrnet/faster-rcnn_hrnetv2p-w18-2x_coco.py', 'hrnet/faster-rcnn_hrnetv2p-w32-1x_coco.py', 'hrnet/faster-rcnn_hrnetv2p-w32_2x_coco.py', 'hrnet/faster-rcnn_hrnetv2p-w40-1x_coco.py', 'hrnet/faster-rcnn_hrnetv2p-w40_2x_coco.py', 'hrnet/mask-rcnn_hrnetv2p-w18-1x_coco.py', 'hrnet/mask-rcnn_hrnetv2p-w18-2x_coco.py', 'hrnet/mask-rcnn_hrnetv2p-w32-1x_coco.py', 'hrnet/mask-rcnn_hrnetv2p-w32-2x_coco.py', 'hrnet/mask-rcnn_hrnetv2p-w40_1x_coco.py', 'hrnet/mask-rcnn_hrnetv2p-w40-2x_coco.py', 'hrnet/cascade-rcnn_hrnetv2p-w18-20e_coco.py', 'hrnet/cascade-rcnn_hrnetv2p-w32-20e_coco.py', 'hrnet/cascade-rcnn_hrnetv2p-w40-20e_coco.py', 'hrnet/cascade-mask-rcnn_hrnetv2p-w18_20e_coco.py', 'hrnet/cascade-mask-rcnn_hrnetv2p-w32_20e_coco.py', 'hrnet/cascade-mask-rcnn_hrnetv2p-w40-20e_coco.py', 'hrnet/htc_hrnetv2p-w18_20e_coco.py', 'hrnet/htc_hrnetv2p-w32_20e_coco.py', 'hrnet/htc_hrnetv2p-w40_20e_coco.py', 'hrnet/fcos_hrnetv2p-w18-gn-head_4xb4-1x_coco.py', 'hrnet/fcos_hrnetv2p-w18-gn-head_4xb4-2x_coco.py', 'hrnet/fcos_hrnetv2p-w32-gn-head_4xb4-1x_coco.py', 'hrnet/fcos_hrnetv2p-w32-gn-head_4xb4-2x_coco.py', 'hrnet/fcos_hrnetv2p-w18-gn-head_ms-640-800-4xb4-2x_coco.py', 'hrnet/fcos_hrnetv2p-w32-gn-head_ms-640-800-4xb4-2x_coco.py', 'hrnet/fcos_hrnetv2p-w40-gn-head_ms-640-800-4xb4-2x_coco.py', 'htc/htc_r50_fpn_1x_coco.py', 'htc/htc_r50_fpn_20e_coco.py', 'htc/htc_r101_fpn_20e_coco.py', 'htc/htc_x101-32x4d_fpn_16xb1-20e_coco.py', 'htc/htc_x101-64x4d_fpn_16xb1-20e_coco.py', 'htc/htc_x101-64x4d-dconv-c3-c5_fpn_ms-400-1400-16xb1-20e_coco.py', 'instaboost/mask-rcnn_r50_fpn_instaboost-4x_coco.py', 'instaboost/mask-rcnn_r101_fpn_instaboost-4x_coco.py', 'instaboost/mask-rcnn_x101-64x4d_fpn_instaboost-4x_coco.py', 'instaboost/cascade-mask-rcnn_r50_fpn_instaboost-4x_coco.py', 'lad/lad_r101-paa-r50_fpn_2xb8_coco_1x.py', 'lad/lad_r50-paa-r101_fpn_2xb8_coco_1x.py', 'ld/ld_r18-gflv1-r101_fpn_1x_coco.py', 'ld/ld_r34-gflv1-r101_fpn_1x_coco.py', 'ld/ld_r50-gflv1-r101_fpn_1x_coco.py', 'ld/ld_r101-gflv1-r101-dcn_fpn_2x_coco.py', 'libra_rcnn/libra-faster-rcnn_r50_fpn_1x_coco.py', 'libra_rcnn/libra-faster-rcnn_r101_fpn_1x_coco.py', 'libra_rcnn/libra-faster-rcnn_x101-64x4d_fpn_1x_coco.py', 'libra_rcnn/libra-retinanet_r50_fpn_1x_coco.py', 'mask2former/mask2former_swin-s-p4-w7-224_8xb2-lsj-50e_coco-panoptic.py', 'mask2former/mask2former_r101_8xb2-lsj-50e_coco.py', 'mask2former/mask2former_r101_8xb2-lsj-50e_coco-panoptic.py', 'mask2former/mask2former_r50_8xb2-lsj-50e_coco-panoptic.py', 'mask2former/mask2former_swin-t-p4-w7-224_8xb2-lsj-50e_coco-panoptic.py', 'mask2former/mask2former_r50_8xb2-lsj-50e_coco.py', 'mask2former/mask2former_swin-l-p4-w12-384-in21k_16xb1-lsj-100e_coco-panoptic.py', 'mask2former/mask2former_swin-b-p4-w12-384-in21k_8xb2-lsj-50e_coco-panoptic.py', 'mask2former/mask2former_swin-b-p4-w12-384_8xb2-lsj-50e_coco-panoptic.py', 'mask2former/mask2former_swin-t-p4-w7-224_8xb2-lsj-50e_coco.py', 'mask2former/mask2former_swin-s-p4-w7-224_8xb2-lsj-50e_coco.py', 'mask_rcnn/mask-rcnn_r50-caffe_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_r50_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_r50_fpn_amp-1x_coco.py', 'mask_rcnn/mask-rcnn_r50_fpn_2x_coco.py', 'mask_rcnn/mask-rcnn_r101-caffe_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_r101_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_r101_fpn_2x_coco.py', 'mask_rcnn/mask-rcnn_x101-32x4d_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_x101-32x4d_fpn_2x_coco.py', 'mask_rcnn/mask-rcnn_x101-64x4d_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_x101-64x4d_fpn_2x_coco.py', 'mask_rcnn/mask-rcnn_x101-32x8d_fpn_1x_coco.py', 'mask_rcnn/mask-rcnn_r50-caffe_fpn_ms-poly-2x_coco.py', 'mask_rcnn/mask-rcnn_r50-caffe_fpn_ms-poly-3x_coco.py', 'mask_rcnn/mask-rcnn_r50_fpn_ms-poly-3x_coco.py', 'mask_rcnn/mask-rcnn_r101_fpn_ms-poly-3x_coco.py', 'mask_rcnn/mask-rcnn_r101-caffe_fpn_ms-poly-3x_coco.py', 'mask_rcnn/mask-rcnn_x101-32x4d_fpn_ms-poly-3x_coco.py', 'mask_rcnn/mask-rcnn_x101-32x8d_fpn_ms-poly-1x_coco.py', 'mask_rcnn/mask-rcnn_x101-32x8d_fpn_ms-poly-3x_coco.py', 'mask_rcnn/mask-rcnn_x101-64x4d_fpn_ms-poly_3x_coco.py', 'maskformer/maskformer_r50_ms-16xb1-75e_coco.py', 'maskformer/maskformer_swin-l-p4-w12_64xb1-ms-300e_coco.py', 'ms_rcnn/ms-rcnn_r50-caffe_fpn_1x_coco.py', 'ms_rcnn/ms-rcnn_r50-caffe_fpn_2x_coco.py', 'ms_rcnn/ms-rcnn_r101-caffe_fpn_1x_coco.py', 'ms_rcnn/ms-rcnn_r101-caffe_fpn_2x_coco.py', 'ms_rcnn/ms-rcnn_x101-32x4d_fpn_1x_coco.py', 'ms_rcnn/ms-rcnn_x101-64x4d_fpn_1x_coco.py', 'ms_rcnn/ms-rcnn_x101-64x4d_fpn_2x_coco.py', 'nas_fcos/nas-fcos_r50-caffe_fpn_nashead-gn-head_4xb4-1x_coco.py', 'nas_fcos/nas-fcos_r50-caffe_fpn_fcoshead-gn-head_4xb4-1x_coco.py', 'nas_fpn/retinanet_r50_fpn_crop640-50e_coco.py', 'nas_fpn/retinanet_r50_nasfpn_crop640-50e_coco.py', 'openimages/faster-rcnn_r50_fpn_32xb2-1x_openimages.py', 'openimages/retinanet_r50_fpn_32xb2-1x_openimages.py', 'openimages/ssd300_32xb8-36e_openimages.py', 'openimages/faster-rcnn_r50_fpn_32xb2-1x_openimages-challenge.py', 'openimages/faster-rcnn_r50_fpn_32xb2-cas-1x_openimages.py', 'openimages/faster-rcnn_r50_fpn_32xb2-cas-1x_openimages-challenge.py', 'paa/paa_r50_fpn_1x_coco.py', 'paa/paa_r50_fpn_1.5x_coco.py', 'paa/paa_r50_fpn_2x_coco.py', 'paa/paa_r50_fpn_ms-3x_coco.py', 'paa/paa_r101_fpn_1x_coco.py', 'paa/paa_r101_fpn_2x_coco.py', 'paa/paa_r101_fpn_ms-3x_coco.py', 'pafpn/faster-rcnn_r50_pafpn_1x_coco.py', 'panoptic_fpn/panoptic-fpn_r50_fpn_1x_coco.py', 'panoptic_fpn/panoptic-fpn_r50_fpn_ms-3x_coco.py', 'panoptic_fpn/panoptic-fpn_r101_fpn_1x_coco.py', 'panoptic_fpn/panoptic-fpn_r101_fpn_ms-3x_coco.py', 'pvt/retinanet_pvt-t_fpn_1x_coco.py', 'pvt/retinanet_pvt-s_fpn_1x_coco.py', 'pvt/retinanet_pvt-m_fpn_1x_coco.py', 'pvt/retinanet_pvtv2-b0_fpn_1x_coco.py', 'pvt/retinanet_pvtv2-b1_fpn_1x_coco.py', 'pvt/retinanet_pvtv2-b2_fpn_1x_coco.py', 'pvt/retinanet_pvtv2-b3_fpn_1x_coco.py', 'pvt/retinanet_pvtv2-b4_fpn_1x_coco.py', 'pvt/retinanet_pvtv2-b5_fpn_1x_coco.py', 'pisa/faster-rcnn_r50_fpn_pisa_1x_coco.py', 'pisa/faster-rcnn_x101-32x4d_fpn_pisa_1x_coco.py', 'pisa/mask-rcnn_r50_fpn_pisa_1x_coco.py', 'pisa/retinanet-r50_fpn_pisa_1x_coco.py', 'pisa/retinanet_x101-32x4d_fpn_pisa_1x_coco.py', 'pisa/ssd300_pisa_coco.py', 'pisa/ssd512_pisa_coco.py', 'point_rend/point-rend_r50-caffe_fpn_ms-1x_coco.py', 'point_rend/point-rend_r50-caffe_fpn_ms-3x_coco.py', 'queryinst/queryinst_r50_fpn_1x_coco.py', 'queryinst/queryinst_r50_fpn_ms-480-800-3x_coco.py', 'queryinst/queryinst_r50_fpn_300-proposals_crop-ms-480-800-3x_coco.py', 'queryinst/queryinst_r101_fpn_ms-480-800-3x_coco.py', 'queryinst/queryinst_r101_fpn_300-proposals_crop-ms-480-800-3x_coco.py', 'rtmdet/rtmdet_tiny_8xb32-300e_coco.py', 'rtmdet/rtmdet_s_8xb32-300e_coco.py', 'rtmdet/rtmdet_m_8xb32-300e_coco.py', 'rtmdet/rtmdet_l_8xb32-300e_coco.py', 'rtmdet/rtmdet_x_8xb32-300e_coco.py', 'regnet/mask-rcnn_regnetx-3.2GF_fpn_1x_coco.py', 'regnet/mask-rcnn_regnetx-4GF_fpn_1x_coco.py', 'regnet/mask-rcnn_regnetx-6.4GF_fpn_1x_coco.py', 'regnet/mask-rcnn_regnetx-8GF_fpn_1x_coco.py', 'regnet/mask-rcnn_regnetx-12GF_fpn_1x_coco.py', 'regnet/mask-rcnn_regnetx-3.2GF-mdconv-c3-c5_fpn_1x_coco.py', 'regnet/faster-rcnn_regnetx-3.2GF_fpn_1x_coco.py', 'regnet/faster-rcnn_regnetx-3.2GF_fpn_2x_coco.py', 'regnet/retinanet_regnetx-800MF_fpn_1x_coco.py', 'regnet/retinanet_regnetx-1.6GF_fpn_1x_coco.py', 'regnet/retinanet_regnetx-3.2GF_fpn_1x_coco.py', 'regnet/faster-rcnn_regnetx-400MF_fpn_ms-3x_coco.py', 'regnet/faster-rcnn_regnetx-800MF_fpn_ms-3x_coco.py', 'regnet/faster-rcnn_regnetx-1.6GF_fpn_ms-3x_coco.py', 'regnet/faster-rcnn_regnetx-3.2GF_fpn_ms-3x_coco.py', 'regnet/faster-rcnn_regnetx-4GF_fpn_ms-3x_coco.py', 'regnet/mask-rcnn_regnetx-3.2GF_fpn_ms-3x_coco.py', 'regnet/mask-rcnn_regnetx-400MF_fpn_ms-poly-3x_coco.py', 'regnet/mask-rcnn_regnetx-800MF_fpn_ms-poly-3x_coco.py', 'regnet/mask-rcnn_regnetx-1.6GF_fpn_ms-poly-3x_coco.py', 'regnet/mask-rcnn_regnetx-4GF_fpn_ms-poly-3x_coco.py', 'regnet/cascade-mask-rcnn_regnetx-400MF_fpn_ms-3x_coco.py', 'regnet/cascade-mask-rcnn_regnetx-800MF_fpn_ms-3x_coco.py', 'regnet/cascade-mask-rcnn_regnetx-1.6GF_fpn_ms-3x_coco.py', 'regnet/cascade-mask-rcnn_regnetx-3.2GF_fpn_ms-3x_coco.py', 'regnet/cascade-mask-rcnn_regnetx-4GF_fpn_ms-3x_coco.py', 'reppoints/reppoints-bbox_r50_fpn-gn_head-gn-grid_1x_coco.py', 'reppoints/reppoints-bbox_r50-center_fpn-gn_head-gn-grid_1x_coco.py', 'reppoints/reppoints-moment_r50_fpn_1x_coco.py', 'reppoints/reppoints-moment_r50_fpn-gn_head-gn_1x_coco.py', 'reppoints/reppoints-moment_r50_fpn-gn_head-gn_2x_coco.py', 'reppoints/reppoints-moment_r101_fpn-gn_head-gn_2x_coco.py', 'reppoints/reppoints-moment_r101-dconv-c3-c5_fpn-gn_head-gn_2x_coco.py', 'reppoints/reppoints-moment_x101-dconv-c3-c5_fpn-gn_head-gn_2x_coco.py', 'res2net/faster-rcnn_res2net-101_fpn_2x_coco.py', 'res2net/mask-rcnn_res2net-101_fpn_2x_coco.py', 'res2net/cascade-rcnn_res2net-101_fpn_20e_coco.py', 'res2net/cascade-mask-rcnn_res2net-101_fpn_20e_coco.py', 'res2net/htc_res2net-101_fpn_20e_coco.py', 'resnest/faster-rcnn_s50_fpn_syncbn-backbone+head_ms-range-1x_coco.py', 'resnest/faster-rcnn_s101_fpn_syncbn-backbone+head_ms-range-1x_coco.py', 'resnest/mask-rcnn_s50_fpn_syncbn-backbone+head_ms-1x_coco.py', 'resnest/mask-rcnn_s101_fpn_syncbn-backbone+head_ms-1x_coco.py', 'resnest/cascade-rcnn_s50_fpn_syncbn-backbone+head_ms-range-1x_coco.py', 'resnest/cascade-rcnn_s101_fpn_syncbn-backbone+head_ms-range-1x_coco.py', 'resnest/cascade-mask-rcnn_s50_fpn_syncbn-backbone+head_ms-1x_coco.py', 'resnest/cascade-mask-rcnn_s101_fpn_syncbn-backbone+head_ms-1x_coco.py', 'resnet_strikes_back/faster-rcnn_r50-rsb-pre_fpn_1x_coco.py', 'resnet_strikes_back/cascade-mask-rcnn_r50-rsb-pre_fpn_1x_coco.py', 'resnet_strikes_back/retinanet_r50-rsb-pre_fpn_1x_coco.py', 'resnet_strikes_back/mask-rcnn_r50-rsb-pre_fpn_1x_coco.py', 'retinanet/retinanet_r18_fpn_1x_coco.py', 'retinanet/retinanet_r18_fpn_1xb8-1x_coco.py', 'retinanet/retinanet_r50-caffe_fpn_1x_coco.py', 'retinanet/retinanet_r50_fpn_1x_coco.py', 'retinanet/retinanet_r50_fpn_amp-1x_coco.py', 'retinanet/retinanet_r50_fpn_2x_coco.py', 'retinanet/retinanet_r50_fpn_ms-640-800-3x_coco.py', 'retinanet/retinanet_r101-caffe_fpn_1x_coco.py', 'retinanet/retinanet_r101-caffe_fpn_ms-3x_coco.py', 'retinanet/retinanet_r101_fpn_1x_coco.py', 'retinanet/retinanet_r101_fpn_2x_coco.py', 'retinanet/retinanet_r101_fpn_ms-640-800-3x_coco.py', 'retinanet/retinanet_x101-32x4d_fpn_1x_coco.py', 'retinanet/retinanet_x101-32x4d_fpn_2x_coco.py', 'retinanet/retinanet_x101-64x4d_fpn_1x_coco.py', 'retinanet/retinanet_x101-64x4d_fpn_2x_coco.py', 'retinanet/retinanet_x101-64x4d_fpn_ms-640-800-3x_coco.py', 'sabl/sabl-faster-rcnn_r50_fpn_1x_coco.py', 'sabl/sabl-faster-rcnn_r101_fpn_1x_coco.py', 'sabl/sabl-cascade-rcnn_r50_fpn_1x_coco.py', 'sabl/sabl-cascade-rcnn_r101_fpn_1x_coco.py', 'sabl/sabl-retinanet_r50_fpn_1x_coco.py', 'sabl/sabl-retinanet_r50-gn_fpn_1x_coco.py', 'sabl/sabl-retinanet_r101_fpn_1x_coco.py', 'sabl/sabl-retinanet_r101-gn_fpn_1x_coco.py', 'sabl/sabl-retinanet_r101-gn_fpn_ms-640-800-2x_coco.py', 'sabl/sabl-retinanet_r101-gn_fpn_ms-480-960-2x_coco.py', 'scnet/scnet_r50_fpn_1x_coco.py', 'scnet/scnet_r50_fpn_20e_coco.py', 'scnet/scnet_r101_fpn_20e_coco.py', 'scnet/scnet_x101-64x4d_fpn_20e_coco.py', 'scratch/faster-rcnn_r50-scratch_fpn_gn-all_6x_coco.py', 'scratch/mask-rcnn_r50-scratch_fpn_gn-all_6x_coco.py', 'mask-rcnn_r50_fpn_seesaw-loss_random-ms-2x_lvis-v1.py', 'mask-rcnn_r50_fpn_seesaw-loss-normed-mask_random-ms-2x_lvis-v1.py', 'mask-rcnn_r101_fpn_seesaw-loss_random-ms-2x_lvis-v1.py', 'mask-rcnn_r101_fpn_seesaw-loss-normed-mask_random-ms-2x_lvis-v1.py', 'seesaw_loss/mask-rcnn_r50_fpn_seesaw-loss_sample1e-3-ms-2x_lvis-v1.py', 'seesaw_loss/mask-rcnn_r50_fpn_seesaw-loss-normed-mask_sample1e-3-ms-2x_lvis-v1.py', 'seesaw_loss/mask-rcnn_r101_fpn_seesaw-loss_sample1e-3-ms-2x_lvis-v1.py', 'seesaw_loss/mask-rcnn_r101_fpn_seesaw-loss-normed-mask_sample1e-3-ms-2x_lvis-v1.py', 'seesaw_loss/cascade-mask-rcnn_r101_fpn_seesaw-loss_random-ms-2x_lvis-v1.py', 'seesaw_loss/cascade-mask-rcnn_r101_fpn_seesaw-loss-normed-mask_random-ms-2x_lvis-v1.py', 'seesaw_loss/cascade-mask-rcnn_r101_fpn_seesaw-loss_sample1e-3-ms-2x_lvis-v1.py', 'seesaw_loss/cascade-mask-rcnn_r101_fpn_seesaw-loss-normed-mask_sample1e-3-ms-2x_lvis-v1.py', 'simplecopypaste/mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_32xb2-ssj-270k_coco.py', 'simplecopypaste/mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_32xb2-ssj-90k_coco.py', 'simplecopypaste/mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_32xb2-ssj-scp-270k_coco.py', 'simplecopypaste/mask-rcnn_r50_fpn_rpn-2conv_4conv1fc_syncbn-all_32xb2-ssj-scp-90k_coco.py', 'sparse_rcnn/sparse-rcnn_r50_fpn_1x_coco.py', 'sparse_rcnn/sparse-rcnn_r50_fpn_ms-480-800-3x_coco.py', 'sparse_rcnn/sparse-rcnn_r50_fpn_300-proposals_crop-ms-480-800-3x_coco.py', 'sparse_rcnn/sparse-rcnn_r101_fpn_ms-480-800-3x_coco.py', 'sparse_rcnn/sparse-rcnn_r101_fpn_300-proposals_crop-ms-480-800-3x_coco.py', 'solo/decoupled-solo_r50_fpn_1x_coco.py', 'solo/decoupled-solo_r50_fpn_3x_coco.py', 'solo/decoupled-solo-light_r50_fpn_3x_coco.py', 'solo/solo_r50_fpn_3x_coco.py', 'solo/solo_r50_fpn_1x_coco.py', 'solov2/solov2_r50_fpn_1x_coco.py', 'solov2/solov2_r50_fpn_ms-3x_coco.py', 'solov2/solov2_r101-dcn_fpn_ms-3x_coco.py', 'solov2/solov2_x101-dcn_fpn_ms-3x_coco.py', 'solov2/solov2-light_r18_fpn_ms-3x_coco.py', 'solov2/solov2-light_r50_fpn_ms-3x_coco.py', 'ssd/ssd300_coco.py', 'ssd/ssd512_coco.py', 'ssd/ssdlite_mobilenetv2-scratch_8xb24-600e_coco.py', 'swin/mask-rcnn_swin-s-p4-w7_fpn_amp-ms-crop-3x_coco.py', 'swin/mask-rcnn_swin-t-p4-w7_fpn_ms-crop-3x_coco.py', 'swin/mask-rcnn_swin-t-p4-w7_fpn_1x_coco.py', 'swin/mask-rcnn_swin-t-p4-w7_fpn_amp-ms-crop-3x_coco.py', 'tridentnet/tridentnet_r50-caffe_1x_coco.py', 'tridentnet/tridentnet_r50-caffe_ms-1x_coco.py', 'tridentnet/tridentnet_r50-caffe_ms-3x_coco.py', 'tood/tood_r101_fpn_ms-2x_coco.py', 'tood/tood_x101-64x4d_fpn_ms-2x_coco.py', 'tood/tood_r101-dconv-c3-c5_fpn_ms-2x_coco.py', 'tood/tood_r50_fpn_anchor-based_1x_coco.py', 'tood/tood_r50_fpn_1x_coco.py', 'tood/tood_r50_fpn_ms-2x_coco.py', 'vfnet/vfnet_r50_fpn_1x_coco.py', 'vfnet/vfnet_r50_fpn_ms-2x_coco.py', 'vfnet/vfnet_r50-mdconv-c3-c5_fpn_ms-2x_coco.py', 'vfnet/vfnet_r101_fpn_1x_coco.py', 'vfnet/vfnet_r101_fpn_ms-2x_coco.py', 'vfnet/vfnet_r101-mdconv-c3-c5_fpn_ms-2x_coco.py', 'vfnet/vfnet_x101-32x4d-mdconv-c3-c5_fpn_ms-2x_coco.py', 'vfnet/vfnet_x101-64x4d-mdconv-c3-c5_fpn_ms-2x_coco.py', 'yolact/yolact_r50_1xb8-55e_coco.py', 'yolact/yolact_r50_8xb8-55e_coco.py', 'yolact/yolact_r101_1xb8-55e_coco.py', 'yolo/yolov3_d53_8xb8-320-273e_coco.py', 'yolo/yolov3_d53_8xb8-ms-416-273e_coco.py', 'yolo/yolov3_d53_8xb8-ms-608-273e_coco.py', 'yolo/yolov3_d53_8xb8-amp-ms-608-273e_coco.py', 'yolo/yolov3_mobilenetv2_8xb24-320-300e_coco.py', 'yolo/yolov3_mobilenetv2_8xb24-ms-416-300e_coco.py', 'yolof/yolof_r50-c5_8xb8-1x_coco.py', 'yolox/yolox_s_8xb8-300e_coco.py', 'yolox/yolox_l_8xb8-300e_coco.py', 'yolox/yolox_x_8xb8-300e_coco.py', 'yolox/yolox_tiny_8xb8-300e_coco.py']), but got faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "debug.py", line 28, in <module>
    model = get_model(
  File "/home/xxx/xxx/workspace/mmengine/mmengine/hub/hub.py", line 77, in get_model
    cfg = get_config(cfg_path, pretrained)
  File "/home/xxx/xxx/workspace/mmengine/mmengine/hub/hub.py", line 51, in get_config
    cfg_path = _get_external_cfg_base_path(package_path, cfg_path)
  File "/home/xxx/xxx/workspace/mmengine/mmengine/config/utils.py", line 92, in _get_external_cfg_base_path
    check_file_exist(cfg_path)
  File "/home/xxx/xxx/workspace/mmengine/mmengine/utils/path.py", line 23, in check_file_exist
    raise FileNotFoundError(msg_tmpl.format(filename))
FileNotFoundError: file "/home/xxx/xxx/workspace/mmdetection/mmdet/.mim/configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py" does not exist

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

@zengyh1900
Copy link
Collaborator Author

Thank @zhouzaida for providing a lot of help!
We found that it is caused by a wrong filename that appeared in the documentation.
mmdet::faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py -> mmdet::faster_rcnn/faster-rcnn_r50_fpn_1x_coco.py
I have fixed in #659

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

Successfully merging a pull request may close this issue.

2 participants