Python 如何跳过遮罩rcnn中的图形边界框?
我正在使用,并试图跳过绘制边界框,方法是在Python 如何跳过遮罩rcnn中的图形边界框?,python,tensorflow,Python,Tensorflow,我正在使用,并试图跳过绘制边界框,方法是在visualize\u boxes\u和\u image\u array()中声明skip\u boxes=True。但是,我有以下错误: TypeError Traceback (most recent call last) <ipython-input-16-5dec21016fcf> in <module>() 15 skip_boxes =
visualize\u boxes\u和\u image\u array()
中声明skip\u boxes=True
。但是,我有以下错误:
TypeError Traceback (most recent call last)
<ipython-input-16-5dec21016fcf> in <module>()
15 skip_boxes = True,
16 skip_scores=True,
---> 17 skip_labels=True)
18
19
TypeError: visualize_boxes_and_labels_on_image_array() got an unexpected keyword argument 'skip_boxes'
max_boxes_to_draw = 4#@param {type:"integer"}
min_score_thresh = 0.3 #@param {type:"slider", min:0, max:1, step:0.01}
image_with_detections = visualization_utils.visualize_boxes_and_labels_on_image_array(
np_image,
boxesUpdated,
classesUpdated,
scoresUpdated,
category_index,
instance_boundaries=None,
instance_masks=segmentationsUpdated,
use_normalized_coordinates=False,
max_boxes_to_draw=max_boxes_to_draw,
min_score_thresh=min_score_thresh,
skip_boxes = True,
skip_scores=True,
skip_labels=True)
output_image_path = 'test_results.jpg'
Image.fromarray(image_with_detections.astype(np.uint8)).save(output_image_path)
display.display(display.Image(output_image_path, width=1024))