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

cannot import name 'show_result_pyplot' from 'mmdet.apis' #131

Open
londumas opened this issue Jun 12, 2023 · 4 comments
Open

cannot import name 'show_result_pyplot' from 'mmdet.apis' #131

londumas opened this issue Jun 12, 2023 · 4 comments

Comments

@londumas
Copy link

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)
@rweaton-ai
Copy link

I encountered the same issue when attempting to run the demo.

@cuicuiv
Copy link

cuicuiv commented Dec 24, 2023

+1

@matanPercepto
Copy link

me too, when trying to migrate from mmdet 2.X to 3.X

@sabrina19950113
Copy link

Check this out. open-mmlab/mmdetection#10829 (comment)

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

No branches or pull requests

5 participants