Set Shape Flag defaults in Settingsv7.6.0
FEATUREv7.6.01 min read

Set Shape Flag defaults in Settings

An annotation workflow may need occluded and truncated on every car Shape. Setting up those choices used to mean editing the Config File by hand.

Labelme v7.6.0 adds Predefined shape flags to Settings. Add a Label pattern, enter one Shape Flag name per line, and valid edits apply without restarting Labelme.

Offscreen Labelme v7.6.0 Settings showing exact-match rules that offer occluded and truncated for car Shapes, and occluded and difficult for person Shapes.
Each rule pairs a Label pattern with the Shape Flags that matching Shapes should offer.

The ^car$ pattern matches the exact Label car. When you create or edit a matching Shape, the Shape Label dialog offers the configured Shape Flags as unchecked choices.

Offscreen Labelme v7.6.0 Shape Label dialog for car showing unchecked occluded and truncated Shape Flag checkboxes.
The Shape Label dialog picks up valid rules immediately.

Defaults without silent deletion

The rules provide defaults; they are not a whitelist. Changing or removing a rule does not alter the current Annotation, and changing a Shape's Label does not erase Shape Flags already stored on it. That preservation rule prevents a Settings edit from silently discarding another annotator's data.

An incomplete pattern, invalid regular expression, or duplicate pattern shows an inline error while the last valid rules stay active. The Shape Flag Settings implementation and its preservation decision record both behaviors.

Labelme is an offline-first annotation tool with local AI support.

Try Labelme Free