Skip to content

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.

License

Notifications You must be signed in to change notification settings

mHealthBuet/Object-Based-Mask-Generation

Repository files navigation

Object-Based-Mask-Generation

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 Pipeline of the work Getting the mask

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.

Some example of our work Raw video frame Masked frame

The repository includes:

  • Source code of Mask R-CNN built on Inception Resnet V2 backbone.

Getting Started

  1. Clone this repository

  2. Install dependencies

    conda install -c anaconda tensorflow-gpu
    conda install -c anaconda pillow
    conda install -c anaconda opencv
    conda install -c anaconda matplotlib
  3. Unrar the research.rar file which contains 5 files

  4. 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.

  5. 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.

Requirements

Python 3.4, TensorFlow 1.3,anaconda,opencv and other common packages.

Related Works

  • 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.

Acknowledgement

Tons of code was downloaded from this repo https://github.com/tensorflow/models

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages