SUYEgit / Surgery-Robot-Detection-Segmentation

Object detection and segmentation for a surgery robot using Mask-RCNN on Python 3, Keras, and TensorFlow..
Other
181 stars 84 forks source link

Error: visualize.display_instances not working #17

Closed eoghanmull closed 5 years ago

eoghanmull commented 5 years ago

The function call is throwing an error:

Function: visualize.display_instances(image, r['rois'], r['masks'], r['class_ids'], class_names, r['scores'], making_image=True)

Error: TypeError: display_instances() got an unexpected keyword argument 'making_image'

Import: from mrcnn import visualize

The function has been updated correctly within mrcnn/visualize.py

eoghanmull commented 5 years ago

Imported visualize was coming from

/home/user/miniconda3/lib/python3.6/site-packages/mask_rcnn-2.1-py3.6.egg/mrcnn/visualize.py