TECHNOLOGY

CVAT mask exports: verify holes, layering and instance topology after rasterization

In this article
THE QUICK TAKE

Rasterized class coverage and object-instance identity must both be checked when exporting layered polygon annotations as masks.

Start with an object containing real empty space

A segmentation dataset includes a wheel whose interior should remain background. A visually outlined polygon does not automatically specify an internal transparent hole in every annotation representation. The CVAT mask-creation guide describes the polygon limitation and a background-layer approach for exported masks. Use a representative object with internal empty space when testing an export, rather than only solid silhouettes that cannot reveal the distinction.

Inspect ordering as part of rasterization

When a background shape covers part of another shape, the resulting pixels depend on the intended layer relationship. Preserve that relationship when constructing and reviewing annotations. The edit view and a rasterized class mask answer different questions: one presents editable shapes, while the other assigns pixel coverage. Inspect both the object boundary and the interior after conversion. A correct class color at the border does not establish that the hole remained excluded.

Keep group meaning separate from connected pixels

The shape-grouping guide describes grouping distinct shapes. The mask-creation guide explains that grouped shapes can be exported as one instance. Decide whether separated regions really belong to the same physical instance before grouping them for convenience. Pixel connectivity, shared class and common instance identity are different properties. A converter that preserves class coverage but merges distinct objects can damage the training target without obvious changes in the colored preview.

Check the chosen segmentation representation

The COCO format guide describes how polygon and mask input, grouping and crowd-related settings affect segmentation output. Inspect the actual representation in the exported annotation rather than assuming every target uses equivalent geometry. Use the model loader to reconstruct the mask. That reconstruction is the training-facing evidence and may expose a format conversion issue not apparent in the editor’s canvas.

Validate topology and identity together

Compare foreground pixels, empty interiors and instance membership on a small, difficult pilot. Keep the source annotations and export settings with the release so conversion errors can be traced. The guides on COCO object identities and label taxonomy mapping explain related semantics. A reliable segmentation handoff preserves which pixels belong to which object, including pixels deliberately assigned to background inside its outer outline.

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