yolov5-segment-txt

All format examples · Machine-readable schema · Convert outputs to COCO

Class 0 followed by four normalized x/y vertices and confidence 0.8. Explicit settings: save_conf=True, no tracking. No box is serialized; the optional suffix settings must be known.

Example

Illustrative values, not predictions from a model. Unless stated otherwise, the image is 200 pixels wide and 100 pixels high.

0 0.05 0.2 0.25 0.2 0.25 0.6 0.05 0.6 0.8

Convert to a standard format

This format is documented, but a conversion adapter is not yet registered.

General conversion example and required context

How to interpret it

Coordinates: Polygon coordinates normalized to the original image width/height.

Columns: class, x1, y1, ..., xn, yn, confidence (only with save_conf)

Confidence: Last column is present only when save_conf is enabled; disabled by default.

Classes: Zero-based model class index. Class meanings require the producing model class-name mapping, which is not embedded.

Metadata: No image dimensions, image path or class names in each row. Keep source-image association externally.

Source definitions