In this short article, we will set up Matterport's Mask RCNN repository.
I ran into many dependency issues, and I wanted to document this and share this to others.
Clone the repository:
git clone https://github.com/matterport/Mask_RCNN.git
Remove opencv-python from requirements.txt:
numpy scipy Pillow cython matplotlib scikit-image tensorflow>=1.3.0 keras>=2.0.8 opencv-python <--- DELETE THIS LINE h5py imgaug IPython[all]
Install the required dependencies:
conda install --file requirements.txt conda install -c conda-forge opencv pycocotools
Migrate the project to TensorFlow 2:
tf_upgrade_v2 --intree Mask_RCNN/ --outtree Mask_RCNN_V2/ --reportfile report.txt
For more information about migrating TensorFlow projects, please go to tensorflow.org/guide/upgrade.