Home

Awesome

Keras Mask R-CNN for Open Images Challenge 2019: Instance Segmentation

Repository contains Mask R-CNN models which were trained on Open Images Dataset during Kaggle competition: https://www.kaggle.com/c/open-images-2019-instance-segmentation/leaderboard

Repository contains the following:

Requirements

Python 3.*, Keras 2.*, keras-maskrcnn 0.2.2, cv2, numpy, pandas

Pretrained models

There are 3 Mask R-CNN models based on ResNet50, ResNet101 and ResNet152 for 300 classes.

BackboneImage Size (px)ModelSmall validation mAPLB (Public)
ResNet50800 - 1024521 MB0.57450.4259
ResNet101800 - 1024739 MB0.59170.4345
ResNet152800 - 1024918 MB0.58990.4404

Inference

Simple example can be found here: inference_example.py

Example of predictions

Training

For training you need to download OID dataset (~500 GB images): https://storage.googleapis.com/openimages/web/download.html You need all images, all masks and all CSV-files related to Instance Segmentation track.

Then run script (change parameters and file locations at the bottom of script):