Blood-Cell-Detection-TFOD-2.0

5

1

Sayan Nath

Added on September 14, 2024

This project demonstrates the use of TensorFlow Object Detection API to automatically detect Red Blood Cells (RBCs), White Blood Cells (WBCs), and Platelets in each image taken via microscopic images.

Blood-Cell-Detection-TFOD-2.0

This project demonstrates the use of TensorFlow Object Detection API to automatically detect Red Blood Cells (RBCs), White Blood Cells (WBCs), and Platelets in each image taken via microscopic images.

Sayan Nath

README.md

This project demonstrates the use of TensorFlow Object Detection API to automatically detect Red Blood Cells (RBCs), White Blood Cells (WBCs), and Platelets in each image taken via microscopic image readings.

The dataset used in this project was collected from here.

The project directory structure looks like:

.
├── BCCD-Dataset
│   ├── test
│   └── train
├── LICENSE
├── README.md
├── annotations
│   └── label_map.pbtxt
├── assets
│   └── example.jpeg
├── export_tflite_graph_tf2.py
├── exporter_main_v2.py
├── generate_tfrecord.py
├── model_main_tf2.py
├── models
│   └── pipeline.config
├── output_images
│   ├── four.png
│   ├── one.png
│   ├── three.png
│   └── two.png
└── results_graph
    ├── classification_loss.png
    └── total_loss.png

I followed the official TensorFlow Object Detection API documentation to kickstart the training process on Google Colab Pro using Cloud GPU to export the inference graph.

I used a EfficientDet D0 based architecture,since it yields a pretty good mAP@.50IOU of around 90.14%.
The results_graph folder contains the graph classification_loss during training.

Source: https://arxiv.org/abs/1911.09070

Sample Image

Inference

Here are some results after running the trained model on some test images:


Results


mAP@0.50IOU


Classification Loss

Further undertakings

  • Optimise the model using the OpenVINO toolkit
  • Convert the saved_model to .tflite
  • To be paired with microscopes used by pathologists

Acknowledgements

I am thankful to Sayak Paul for guiding me in this project.

Developed & Maintained by

👨 Sayan Nath

Related Content

Emojinator

A simple real time emoji classifier for humans.
GitHubUpdated 12 months ago

KalidoKit

Vtuber tracking for Mediapipe/Tensorflow.js Face, Eyes, Pose, and Finger models.
GitHubUpdated 20 months ago

PixPlot

PixPlot combines Tensorflow and WebGL to visualize large image collections in an interactive web environment.
GitHubUpdated 23 months ago

Probing Vision Transformers

In this repository, we provide tools to probe into the representations learned by different families of Vision Transformers (supervised pre-training with ImageNet-21k, ImageNet-1k, distillation, etc.)
GitHubUpdated 29 months ago

Deploying ML models with TFServing, Docker, GKE

This project shows how to serve a TensorFlow image classification model as RESTful and gRPC based service with TFServing, Docker, and Kubernetes.
GitHubUpdated 32 months ago

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.