mmdetection_object_detection_demo icon indicating copy to clipboard operation
mmdetection_object_detection_demo copied to clipboard

ImportError: cannot import name 'show_result'

Open vishaldhull09 opened this issue 5 years ago • 1 comments

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

vishaldhull09 avatar Sep 15 '20 12:09 vishaldhull09

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")

CrazyCrud avatar Jan 08 '21 11:01 CrazyCrud