Open athrunsunny opened 1 year ago
You should download my code and recompile mmdetction.
git clone https://github.com/gyyang23/AFPN.git cd AFPN/mmdetection pip install -v -e .
I also encountered this issue and ran the solution as mentioned above, but the problem still persists. I am still getting the error message: 'AFPN is not registered correctly.' I also tried the YOLO configuration file, and the error is: 'YOLOv5AFPN is not registered.
我也遇到了这个问题,并按照上面提到的方法运行了解决方案,但问题仍然存在。我仍然收到错误消息:“AFPN 未正确注册。” 我也尝试了 YOLO 配置文件,错误是:“YOLOv5AFPN 未注册。” 你解决了吗,我想在mmdet2.x上用这个,我该怎么弄
KeyError: "class
FasterRCNN
in mmdet/models/detectors/faster_rcnn.py: 'AFPN is not in the model registry. Please check whether the value ofAFPN
is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'"