In this article
The full ADE20K RGB annotation and the indexed Scene Parsing mask require different readers and category conventions.
Identify the full release or the challenge subset
ADE20K supports dense scene understanding, including objects, stuff and parts. The owner repository describes images originating in SUN and Places, extensive object annotations and a separate Scene Parsing benchmark using 150 classes. The full collection and that benchmark are related artifacts, not interchangeable versions of the same label tensor. Name the archive, scene subset and split manifest before interpreting a model’s class count. Do not apply the full repository’s partition totals to a challenge subset automatically.
Decode class and instance channels separately
Full annotations include a color PNG whose channels encode semantic and instance information. The owner reader combines red and green channels for object classes and derives instance membership from the blue channel. Loading this file as an ordinary palette of display colors loses its intended meaning. Equally, converting it to grayscale destroys information. Retain the original encoded mask and compare decoded regions with the supplied image before creating a semantic-only export. That export should document which instance distinctions it discarded.
Preserve part depth and annotation attributes
Additional part masks are organized by hierarchy level, while JSON contains polygons, names, part relationships, crop flags and attributes. The example reader exposes both raw and corrected object names. A part such as a component of furniture should not silently become an independent whole-object class during flattening. The helper also contains an unfinished part-instance section; sample code is not a guarantee that every hierarchical output is complete. Keep the original JSON and hierarchy available through artifact provenance.
Apply the benchmark’s index conversion once
The Scene Parsing training loader performs a different operation: it subtracts 1 from the indexed semantic mask, yielding the model’s class range through 149 and an ignored value of -1. Repeating that conversion shifts every target again. The loader also uses nearest-neighbor resizing for segmentation masks, avoiding interpolated class values. Check training, validation and visualization readers together; a correct-looking colored prediction can conceal a shifted numeric target. Preserve the published file lists rather than resplitting rendered crops, following split isolation.
State which boundaries the score evaluates
A semantic score on the selected vocabulary does not measure amodal instance recovery, part hierarchy or annotation attributes. Report ignored-pixel handling, label conversion and the actual benchmark subset alongside the metric. An editorial sanity check would decode a mask, apply the training transform, and map predictions back to the display vocabulary without changing valid labels. Access to the full resource follows the owner’s approval and terms route; availability of a public loader does not establish unrestricted rights to the underlying images.
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.