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

ImportError: cannot import name 'show_result' #12

Open
vishaldhull09 opened this issue Sep 15, 2020 · 1 comment
Open

ImportError: cannot import name 'show_result' #12

vishaldhull09 opened this issue Sep 15, 2020 · 1 comment

Comments

@vishaldhull09
Copy link

How to resolve this?
I am trying to run mmdetection repo on colab
Link :
https://colab.research.google.com/github/Tony607/mmdetection_object_detection_demo/blob/master/mmdetection_train_custom_data.ipynb?authuser=1#scrollTo=FNTFhKuVVhMr

@CrazyCrud
Copy link

CrazyCrud commented Jan 8, 2021

You can try to import the BaseDetector and use its show_result method:

from mmdet.models.detectors import BaseDetector
BaseDetector.show_result(img='data/VOCdevkit/VOC2007/JPEGImages/15.jpg', result=result, self=model, score_thr=score_thr, out_file="result.jpg")

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

2 participants