/blood_cell_segmentation_unet

A Tensorflow/Keras project to segment white blood cells from microscope images!

Primary LanguageJupyter Notebook

White Blood Cell Segmentation Unet

A Tensorflow/Keras project to segment white blood cells from microscope images!

How

I've implemented a model similar to Unet, which uses Inception to extract features, and then upsamples the feature map to output a mask. I'm working with binary masks (cell vs not cell), but the dataset supports trimaps as well, where you would have background, cytoplasm, and nucleus. For more information, please read the Medium article I wrote on the project: https://medium.com/@zarif.azher/white-blood-cell-segmentation-with-keras-using-unet-7a81c6bd2f3b

Usage

  • Run 'train_model.py', which will train the model on the dataset, and produce 'wbc_segmentation_model.h5'
python3 train_model.py
  • You know have the model in an h5 format! Feel free to use it wherever you'd like! To view the demo, run 'demo.py', or look at the 'demo.ipynb' notebook.
python3 demo.py

Notes