TECHNOLOGY

COCO: preserve image and annotation identities

In this article
THE QUICK TAKE

COCO names a family of tasks; the image split and annotation type together define the experiment.

COCO provides images of everyday scenes with task-specific annotations. It is useful for controlled vision baselines because detection, instance segmentation and captioning can be connected to image identities. These tasks are nevertheless different experiments. The official project distinguishes releases, tasks, formats and evaluation routes rather than presenting one interchangeable label file.

Select the year and annotation task together

For a baseline using the 2017 image splits, record whether the input annotations are instances, person keypoints or captions. Keep train, validation and test roles explicit. Public test images are not the same thing as public test ground truth. A local validation report and an official test evaluation should therefore be labeled separately. Reusing an image collection does not make metrics from different annotation tasks comparable.

Preserve identifiers before rewriting labels

The annotation format connects images, annotations and categories through identifiers. For detection, preserve image_id, category_id, bounding boxes, area and crowd information. For segmentation, preserve the mask representation rather than treating its serialized form as a box. Category identifiers should be mapped explicitly to any contiguous model-label indices. Inferring label order from a sorted subset can silently relabel predictions when some categories are absent from that subset.

Transform pixels and geometry consistently

An editorial loader check can resize and flip an image while drawing the transformed boxes or masks over it. Verify coordinate conventions and image dimensions before training. Captions belong to image identities, so several descriptions of one image should not become independent images in a random split. Retain the original annotation identity when a crop creates several training examples; otherwise a visual inspection cannot trace an apparent bad label back to its source.

Use the evaluator’s actual matching rules

The official evaluator defines matching, overlap thresholds, area ranges, maximum detections and handling of crowd annotations. Changing those settings changes the question being measured. A score at one overlap threshold should not be presented as the evaluator’s full aggregate result. Inspect small, medium and large object behavior and missed categories before attributing a gain to better localization. A custom filtering step also needs to report which annotations were removed.

Interpret common objects as a coverage boundary

The original COCO paper explains natural-context scene collection and per-instance annotation. That design does not establish coverage of every industrial camera, rare object or document layout. Use an application-specific holdout for those claims. Provenance through conversion offers a useful identity principle for derived captions or OCR text, while document-level grouping is the analogous rule for grouping image-derived examples. A reproducible COCO result names the release, task, split, label map, preprocessing and evaluator revision.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles