An instance of YOLOv5 trained on custom dataset of food ingredients, collected and annotated manually.
Following are the model parameters used:
Model parameters | Value |
---|---|
Model configuration | yolov5m |
Image size | 640 |
Number of epochs | 100 |
Training batch size | 16 |
Number of classes | 10 |
Inference batch size | 1 |
It must be noted that the following model can be extended(or reconfigured) for more than 10 classes with further inclusion of data from different classes in the same manner as it has currently been done.
After training, the default export scirpt for the yolov5 project was modified to make sure the outputs of the inference instance are {bounding boxes, confidence, class}. Below are some visual results of the model training: