Object based mask generator is used to generate mask from a video from dataset of Office activity recognition.Mainly the task of this is to differentiate the video from irrelevant background object so that network can concentrate into important objects to classify better. It was based on Inception Resnet V2 feature extractor which performs best among all of the existed benchmarked model on COCO dataset. Pipeline of the work is
This is implemented on Python 3 and TensorFlow.Here 13 objects from COCO dataset has been included for segmentation as these objects are important in office activity dataset.It's based on Instance segmentation and then assign specific color to same type of objects which is almost similar for detecting same type of class.
The repository includes:
- Source code of Mask R-CNN built on Inception Resnet V2 backbone.
-
Clone this repository
-
Install dependencies
conda install -c anaconda tensorflow-gpu conda install -c anaconda pillow conda install -c anaconda opencv conda install -c anaconda matplotlib
-
Unrar the research.rar file which contains 5 files
-
Download pre-trained weights,classes names and related file from the Tensorflow model zoo.Download 'mask_rcnn_inception_resnet_v2_atrous_coco' from 'COCO-trained models' table.Put the .rar file in 'object detection' folder after step 2 is done and unrar it.You can also download other model which gives mask as output.We select inception_resnet_V2 as it gives better result though computationally expensive.
-
Run the 'masking.py' from command window
python masking.py
You can follow Mask_RCNN_Dependencies Installation to install every dependency required for this project.
Python 3.4, TensorFlow 1.3,anaconda,opencv and other common packages.
- You can see related works and projects on which we worked from VIP Cup 2019 where we placed 2nd Runners Up.Our team 'BUET Synapticans',we are undergrad students of Bangladesh University of Engineering and Technology.
Tons of code was downloaded from this repo https://github.com/tensorflow/models