Repository navigation
First release of labelcheck: find mistakes in YOLO and COCO object-detection / segmentation labels before training does.
Highlights
- Checks boxes and polygons outside the image, zero-size boxes, unknown class ids, malformed lines, degenerate polygons, unreadable or missing images, COCO size mismatches and dangling image ids.
- Warns about near-identical duplicate boxes, the same box with two classes, very small boxes, and images and label files without a partner.
- Three outputs: a terminal summary, a JSON report for scripts and CI, and one self-contained HTML report with a thumbnail of every problem. Live demo report
Tested
- 33 unit tests.
- Run on the public coco128 subset (128 images, 929 boxes): 0 errors and 7 warnings, all checked by hand, no false alarms found. One small subset is a limited test.
Known limits
- COCO RLE masks are not inspected (their
bboxstill is). Oriented boxes and keypoints are not supported yet.
Install
pip install git+https://github.com/therealclvn/labelcheck@v0.1.0Pairs with labelprep for cutting videos into frames, format conversion and leak-free splits.