Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

Cannot interference on not labeled image

Open szymek1 opened this issue 3 years ago • 0 comments
trafficstars

Hello, I came across a given problem: I trained Mask RCNN model and it works fine in an interference mode on images that have annotations, however when I want to work with an image without annotations I get *** No instances to display *** messange and the image displays as a black window. I use the following code, that was recommended to work for not labeled image:

image1 = mpimg.imread('xxxx/valIMG_1.png')

print(len([image1])) results1 = model.detect([image1], verbose=1)

ax = get_ax(1) r1 = results1[0] visualize.display_instances(image1, r1['rois'], r1['masks'], r1['class_ids'], VALset.class_names, r1['scores'], ax=ax, title="Predictions1")

Thx in advance for all feedback!

szymek1 avatar Jul 10 '22 19:07 szymek1