Skip to content

Mask R-CNN creates a high-quality segmentation mask in addition to the Faster R-CNN network. In addition to class labels and scores, a segmentation mask is created for the objects detected by this neural network. In this repository, using Anaconda prompt step by step Mask R-CNN setup is shown.

Notifications You must be signed in to change notification settings

simurgailab/installation-guide-of-maskrcnn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Step By Step Mask RCNN Installation

Attention❗️

  • Compatible Python Version: python==3.6.12

  • IDE: Anaconda Cloud & Conda Prompt

    -Anaconda Cloud: https://www.anaconda.com

🔺 Step 1: Compatible with Python 3.6 version, a virtual environment named maskrcnn is created in conda prompt.

conda create -n maskrcnn python=3.6.12

🔺 Step 2: The maskrcnn virtual environment is activated.

conda activate maskrcnn

🔺 Step 3: The Mask RCNN published by Matterport is cloned from the GitHub repository.

git clone https://github.com/matterport/Mask_RCNN.git

🔺 Step 4: Mask RCNN must be installed in the requirements.txt file located in the GitHub store. The requirements.txt file will load the libraries needed for your project in batch.

pip install -r requirements.txt

Dependencies

numpy, scipy, cython, h5py, Pillow, scikit-image, tensorflow==1.14.0 keras==2.0.8, jupyter or (tensorflow==1.15.0 keras==2.2.5)

For GPU: tensorflow-gpu:1.15.0, keras:2.2.5 For CPU: tensorflow:1.14.0, keras:2.0.8, h5py:2.10.0

🔺 Step 5: Download the pre-trained weights from https://github.com/matterport/Mask_RCNN/releases.

Download the file mask_rcnn_balloon.h5 from Mask_RCNN_2.1 file and mask_rcnn_coco.h5 model from Mask_RCNN_2.0 file. These 2 models should be placed in the samples folder.

Attention❗️

If the TensorFlow and Keras versions have landed in high versions, you can make a specific installation with the following commands.

🔺 Step 6: Running the setup.py file.

python setup.py install

🔺 Step 7: Loading the pycocotols module.

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

🔺 Step 8: Let's run it on the Jupyter notebook.

jupyter notebook

A view from the project: Mask RCNN Sample

About

Mask R-CNN creates a high-quality segmentation mask in addition to the Faster R-CNN network. In addition to class labels and scores, a segmentation mask is created for the objects detected by this neural network. In this repository, using Anaconda prompt step by step Mask R-CNN setup is shown.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Python 0.1%