Detectors trained with LabelLoop, one per domain
LabelLoop is the general-purpose annotation platform I built for the AI Vision course. Its learning loop fine-tunes a Faster R-CNN on whatever classes a project defines. These are three models trained with exactly that code on very different domains, to show that the same pipeline works beyond one dataset. Each folder holds one model; nothing was tuned per domain.
| Folder | Domain | Classes | Training images | AP50 | mAP@[.5:.95] | Test set |
|---|---|---|---|---|---|---|
apples/ |
Orchard apples | apple | 200 | 0.77 | 0.38 | 532 crops |
blood-cells/ |
Blood cell microscopy | red blood cell, white blood cell, platelet | 50 | 0.90 | 0.59 | 72 images, 945 objects |
everyday/ |
Everyday scenes | person, bicycle, car, dog, bottle, chair | 50 | 0.43 | 0.25 | 100 images, 607 objects |
All scores are on held-out test images never used for training (pycocotools, IoU 0.5 for AP50).
- Architecture: torchvision
fasterrcnn_resnet50_fpn_v2, COCO-pretrained backbone and RPN, new box head with one output per class (+ background) - Training: my own loop (SGD, lr 0.005, momentum 0.9, weight decay 1e-4, step decay at 70%, horizontal flip and brightness/contrast jitter, batch 2), CPU only
The full evaluation (learning curves, comparison with zero-shot suggestions, effort saved, failure analysis) of these are in the project report.
How to use
python inference.py apples my_orchard_photo.jpg
python inference.py blood-cells blood_smear.png
python inference.py everyday street.jpg
Data and licences
apples/: MinneApple (Häni et al., 2020), 512 px crops, MinneApple's own labels; licence CC BY-NC-SA 3.0 (data)blood-cells/: BCCD (Shenggan et al., 2018), the dataset's own split; licence MIT (data)everyday/: COCO val2017 subset (Lin et al., 2014), 6 classes; licence CC BY 4.0 (annotations)
The repository uses the most restrictive of these (CC BY-NC-SA 3.0, from MinneApple) for all files.
Citations
@article{haeni2020minneapple,
title = {MinneApple: A Benchmark Dataset for Apple Detection and Segmentation},
author = {H{\"a}ni, Nicolai and Roy, Pravakar and Isler, Volkan},
journal = {IEEE Robotics and Automation Letters},
volume = {5}, number = {2}, pages = {852--858}, year = {2020},
doi = {10.1109/LRA.2020.2965061}
}
@article{lin2014coco, title={Microsoft COCO: Common Objects in Context}, author={Lin, Tsung-Yi and others},
journal={ECCV}, year={2014}}
@misc{bccd2018, title={BCCD: Blood Cell Count and Detection dataset}, author={Shenggan}, year={2018},
howpublished={\url{https://github.com/Shenggan/BCCD_Dataset}}}