-
Dataset : 90 Train + 10 val RBC/WBC Image Dataset with Annotation. And chose to go with this dataset because there were no datasets with many different types of classes(cells) i.e, more than 3 or more with annotated data.
Sample Image
Input-Image Annotated-Labelled Image
-
Object-Detection Model : Custom Trained Yolov5
-
-
Trained Model-Weights on 300 Epochs : Click Here
-
-
-
Bounding Box Detections, Confidence Scores, Class of each cell are stored in this Excel Sheet with the help pandas python library.
-
-
Segment Anything Model (SAM) : a new AI model from Meta AI that can "cut out" any object, in any image, with a single click SAM is a promptable segmentation system with zero-shot generalization to unfamiliar objects and images, without the need for additional training.
-
Chose this Model because of its Zero-Shot Generalization and its performance.
-
SAM without any training segmnented the cells and the results were very good except the fact that it didn't segment WBCs.
-
So, thought of custom training but it was a very heavy process. So, chose to go with Yolo Family.
Images
Input-Image Segmented-Masked Image
-
Introducing Ultralytics YOLOv8, the latest version of the acclaimed real-time object detection and image segmentation model. YOLOv8 is built on cutting-edge advancements in deep learning and computer vision, offering unparalleled performance in terms of speed and accuracy. Its streamlined design makes it suitable for various applications and easily adaptable to different hardware platforms, from edge devices to cloud APIs.
-
Super Fast with great accuracy and highly user friendly usage and docs.
-
Started Custom Training, but the training time for yolov8-seg was so long that it took around 8:30 mins for each epoch which ultimately burned my google colab free gpu units.
-
So, now decided to go with already trained Yolov5-det model.
-
Fast, precise and easy to train, Ultralytics YOLOv5 has a long and successful history of real time object detection. Treat YOLOv5 as a university where you'll feed your model information for it to learn from and grow into one integrated tool. With YOLOv5 and its Pytorch implementation, you can get started with less than 6 lines of code.
-
With already custom trained yolov5-det model, the Bounding Box Detections, Confidence Scores, Class of each cell are computed and applied on the image.
-
Then each cell are cropped to find its Quantitative Features.
-
- Height
- Width
- Area
- Perimeter
- Aspect Ratio
- Major Axis
- Minor Axis
- Solidity
- Eccentricity
- Convexity
- Feret_Diameter
- Orientation
-
- RGB Values
- HEX Values
- Color Word
-
All the above properties are stored in Excel Sheet with the help of pandas library.
-
But Detailed Description of how it's done can be traced back to my other repo python files such as Segment Anything Model [SAM from META] and CLIP Model [from OpenAI]