Skip to content

Example not working #6787

@Shorlaks

Description

@Shorlaks

Hi
Describe the bug
I'm running the example from the 'colab tutorial' and this is the result I get.

from mmdet.apis import inference_detector, init_detector, show_result_pyplot

# Specify the path to model config and checkpoint file
config_file = r'/home/mb2/Dan/mmdetection/configs/mask_rcnn/mask_rcnn_r50_fpn_mstrain-poly_3x_coco.py'
checkpoint_file = r'/home/mb2/Dan/mmdetection/checkpoints/mask_rcnn_r50_caffe_fpn_mstrain-poly_3x_coco_bbox_mAP-0.408__segm_mAP-0.37_20200504_163245-42aa3d00.pth'

# build the model from a config file and a checkpoint file
model = init_detector(config_file, checkpoint_file, device='cuda:0')

img = r'/home/mb2/Dan/mmdetection/demo/demo.jpg'
result = inference_detector(model, img)
show_result_pyplot(model, img, result, score_thr=0.3)

No bounding box's

Screenshot at 2021-12-14 11-01-55

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions