-
Prerequisite
TaskI have modified the scripts/configs, or I'm working on my own tasks/models/datasets. Branchmaster branch https://github.com/open-mmlab/mmdetection EnvironmentTorchVision: 0.10.1+cu111 Reproduces the problem - code sampleMydataset is not in the dataset registry Reproduces the problem - command or scriptpython tools/train.py configs/rpc/faster_rcnn_r50_fpn_1x_mydata.py Reproduces the problem - error messageMydataset is not in the dataset registry Additional informationI found when I run ‘import mmdet ’ and ‘print(mmdet.path)’,get the results of ['/usr/local/lib/python3.8/dist-packages/mmdet']. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You should make sure that the file you added is imported. Please follow https://mmdetection.readthedocs.io/en/latest/tutorials/customize_models.html#import-the-module to use custom_imports or update init.py to import your module. |
Beta Was this translation helpful? Give feedback.
-
I have imported the file I added. |
Beta Was this translation helpful? Give feedback.
-
ain problem is that the system imports mmdet from pip, not from the source code I modified. |
Beta Was this translation helpful? Give feedback.
You should make sure that the file you added is imported. Please follow https://mmdetection.readthedocs.io/en/latest/tutorials/customize_models.html#import-the-module to use custom_imports or update init.py to import your module.