matterport / Mask_RCNN

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow
Other
24.68k stars 11.7k forks source link

Save each mask #1224

Open galArus1 opened 5 years ago

galArus1 commented 5 years ago

Hey friends... How can I save each mask alone with black background around the object segmentation? I am working on aerial vehicle images and my aim is to make Fine-Grained Classification (e.g Small car with Sunroof and his color black).

for example: test_image

from this image I want to get each 'car' instance in a separate image.

thank you for your time..

waleedka commented 5 years ago

Take a look at the inspect_model.ipynb notebooks. They contain a few examples of inspecting the outputs. Or look at the visualization functions that generated the image you posted as they read individual masks and draw them.

kientruccapa commented 5 years ago

This work for me #1619