mmfewshot
mmfewshot copied to clipboard
cannot import name 'show_result_pyplot' from 'mmdet.apis'
Running the demo does not work with latest mmdetection.
Here is the proposed dem
python demo/demo_attention_rpn_detector_inference.py \
demo/demo_detection_images/query_images/demo_query.jpg \
configs/detection/attention_rpn/coco/attention-rpn_r50_c4_4xb2_coco_base-training.py \
https://download.openmmlab.com/mmfewshot/detection/attention_rpn/coco/attention-rpn_r50_c4_4xb2_coco_base-training_20211102_003348-da28cdfd.pth \
--support-images-dir demo/demo_detection_images/support_images
The error is:
Traceback (most recent call last):
File "<me>/mmfewshot/demo/demo_attention_rpn_detector_inference.py", line 14, in <module>
from mmdet.apis import show_result_pyplot
ImportError: cannot import name 'show_result_pyplot' from 'mmdet.apis' (<me>/mmdetection/mmdet/apis/__init__.py)
I encountered the same issue when attempting to run the demo.
+1
me too, when trying to migrate from mmdet 2.X to 3.X
Check this out. https://github.com/open-mmlab/mmdetection/issues/10829#issuecomment-1763519179