﻿# FLAIR: a baseline class map is not automatically the full annotation vocabulary

Connect FLAIR annotation codes, configured training classes and checkpoint outputs so baseline subsets and full-vocabulary experiments are not silently compared as identical.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-flair-full-baseline-class-code-contract/
Language: en

## Name the selected class contract

The [FLAIR baseline repository](https://github.com/IGNF/FLAIR-1) distinguishes baseline class settings from the full semantic annotation vocabulary. A downloaded annotation raster and a pretrained model do not automatically use identical output codes. Record the chosen class dictionary, ignored values and output-index mapping. Without that contract, a model can produce a perfectly valid array whose category names are wrong when decoded through a legend borrowed from another experiment.

## Preserve the mapping through training

A loader may reduce or remap annotation identifiers before constructing the model target. Preserve that transformation alongside the checkpoint, rather than retaining only the number of output channels. Equal class counts do not prove equal class order. For a concrete check, choose labeled examples from several distinct surfaces and trace original codes into training indices and decoded predictions. This exposes permutations that an attractive colored preview can hide when the palette itself was copied from the wrong configuration.

## Distinguish model confidence from category identity

A probability vector is indexed by the configured vocabulary. Its largest entry is meaningful only after the index-to-category mapping is established. A confident unknown interpretation cannot be repaired by changing the palette after inference. The [FLAIR data paper](https://arxiv.org/abs/2310.13336) explains the land-cover research setting and source imagery. Keep this land-cover meaning separate from an unsupported claim about administrative land use, ownership or a parcel's current operational purpose.

## Select the actual FLAIR release

The [IGN project hub](https://ignf.github.io/FLAIR/) links related FLAIR datasets and challenges. Do not silently exchange one release or task for another because the family name matches. Attach the annotation source, input modalities and configured class map to a derived export. A model trained with a baseline vocabulary may be useful, but reporting a full-vocabulary result requires that the target and model actually support that declared evaluation rather than merely sharing the same image collection.

## Test the legend as part of inference

Inspect an original label, a transformed target and a decoded model output for a small fixed fixture. Save the mapping with the model artifact and verify that batch inference loads it. Related guides on [authoritative dataset releases](/journal/data-guide-google-research-authoritative-release/) and [annotation identity](/journal/data-guide-coco-instance-caption-identities/) provide context. FLAIR's practical requirement here is a continuous semantic chain from publisher annotation to exported category. Correct tensor shape and successful inference establish neither the vocabulary nor the meaning of its output indices.
