Skip to content

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow

License

Notifications You must be signed in to change notification settings

Iftimie/Mask_RCNN

 
 

Repository files navigation

MRI-AI: Faster R-CNN for Object Detection in 3D. Based on matterport implementation

This project is a personal one. I wanted to do somethin cool, so I thought of applying my knowledge into medicine. The ideea is to predict bounding boxes for anatomical structures (organs) given a 3D volume from MRI or CT scanner. If you try to run this and if you find some issues, just email me and I will try to fix.

Example

In order to do this, I started writing code for a tool for visualization and annotation as you can see in the following figure. I'm not an expert in graphics so I just used some pre-made unity assets.

Volume tool

The second thing that I did was to modify every operation from the network to run in 3D. I also had to modify tensorflow backend because some of the operations were not supported in 3D. So you should download my fork of tensorflow, compile it and install. As I manually labeled some examples (only 5 of them found in in input_MaskRCNN_128, the rest of 13 examples are unlabeled), I thought that in order to improve the training, I should train the feature extraction part using an autoencoder. The output of the autoencoder after training looks like in the following gif.

Autoencoder2 Autoencoder

You should be able to download it, and if you have all the requirements installed (most important, my tensorflow version) you should be able to run is instantly using:

# test the model
python test_MRI.py
# train the model
python train_MRI.py

You should be able to play with the volume tool, found in volume tool directory. It is compiled for Linux.

About

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 63.2%
  • Classic ASP 36.8%