Skip to main content

Changelog

Color Attribute filter release notes

v0.6.0 - 2026-09-23Direct link to v0.6.0 - 2026-09-23

ChangedDirect link to Changed

  • Bump the openfilter dependency to 1.4.0

Added: the weights this filter mounts are built by CIDirect link to Added: the weights this filter mounts are built by CI

  • models.toml declares both snapshots, the SigLIP2 colour reader and the garment detector, pinned to a commit, and .github/workflows/model-bundle.yaml wires the shared bundle workflow. The filter could already read weights from a mounted directory, but nothing here produced that directory: the image deployments mount today was pushed by hand.
  • make pull-models and a Model weights section in README, so an operator has something to point FILTER_MODEL_PATH and FILTER_PARSING_MODEL_PATH at, in both the local make run shape and the different shape an imageVolumes mount produces.
  • The colour reader entry is color-reader. The bundle built by hand spelled it colour-reader, which is the only British spelling in the repo; renaming it later would break any deployment pinned to the old path, so it is settled before the first published version.

v0.5.0 - 2026-08-23Direct link to v0.5.0 - 2026-08-23

ChangedDirect link to Changed

  • The clothing parser is now a licence-clean detector. person_parser.py loaded mattmdjaga/segformer_b2_clothes, which declares license: other with no text and is a fine-tune of nvidia/mit-b2, whose licence limits the work and any derivative to research or evaluation. That cannot ship to a paying customer, and the restriction is invisible from the model card. It is replaced by valentinafevu/yolos-fashionpedia: weights MIT, base hustvl/yolos-small Apache-2.0, dataset Fashionpedia CC-BY-4.0, loaded with standard transformers classes and no trust_remote_code.

    A detector answers "where is the shirt" rather than "which pixels are shirt", and a box is enough to read a colour from, which is how the vehicle path already works. It is 5.5x faster on real street crops, 213 ms against 1183 ms. The cost is colour agreement, 60.0% against SegFormer's 88.3%, measured against the same ground truth. Three licence-clean parsers and three no-model approaches were measured first and all scored lower; the numbers are on the PR.

    parsing_model now defaults to the new detector. A deployment pinning the old value keeps working only while it also accepts the old licence.

AddedDirect link to Added

  • parsing_model_path loads the detector from a mounted directory instead of the Hugging Face hub, so the filter runs where egress to the hub is closed. Empty by default, which keeps today's behaviour. A path that is missing, is not a directory, or holds no config.json and safetensors weights is rejected in normalize_config, so the pod fails to start rather than silently becoming a hub download or reporting healthy while every person takes the whole-box read. The safetensors requirement is not incidental: the filter loads with use_safetensors=True on purpose, and the new detector publishes only pytorch_model.bin on main, so a snapshot copied straight from the hub has to be converted before it is mounted.
  • model_path does the same for the SigLIP2 colour reader (FILTER_MODEL_PATH). Both have to be set for a genuinely offline run; either one left empty still reaches the hub.
  • Detections carry garments alongside parts: a list of {part, garment, proxy, color, color_margin, score}, so search can ask for "blue jacket" and not only "blue upper". parts is unchanged. A garment subclass is published only when its own measured colour agreement is at least the overall rate, so the finer label never carries a worse colour than the part it refines. proxy separates the two meanings of garment: null: a garment part standing in for the garment, whose colour is the garment's colour, and a subclass that did not earn publication.
  • person_parts is validated against the parts the detector can produce, so a typo is a startup error instead of a silent fallback to the whole-box read for every person.
  • TrackTable now warns once when the configured track_id_key never matches a detection to an existing track. A field that behaves like a per-frame counter turns every detection into a new track, so the color cache never hits and the filter silently does more work than with track_id_key empty. Observed in the wild: SAM3 emits an id that increments across the whole stream, so pointing track_id_key at it is worse than the default IoU matching. The warning names the field and says what to do.
  • TrackTable also warns once when every id on a topic is the tracker's "untracked" sentinel. Matching still works, by IoU, so nothing breaks and nothing else says so: the operator asked for id matching, is not getting it, and the cause is upstream, ByteTrack disabled or its update raising. Both warnings now track the current condition rather than the whole process lifetime, so a tracker that starts failing mid-run is reported even if it was healthy at the start.
  • TrackTable warns once when the configured track_id_key yields no usable id at all, which is what a misspelled field name and a key pointed at the frame's whole id vector both produce. Neither raised and neither reached the other warnings, so the two most likely ways to mis-point track_id_key were the two that said nothing. The message names the field and tells the operator to check it against what the detector upstream emits.
  • TrackTable warns once when track_id_key swaps a pair of objects: two detections whose ids each claim the other's track while the geometry prefers the opposite assignment for both. A per-frame index or a class id repeats perfectly, so it never looks missing, never looks like the sentinel and never fails to match; it matches by position in the detection list, and the detector reordering by score is what hands one object another's cached color. The evidence is the mutual exchange rather than any single detection sitting closer to another track: objects in a queue advance by roughly their own spacing, so each box lands on the track of the one ahead while every id is correct, and a fast object on a low-framerate stream overlaps nothing at all. The two IoUs are compared against each other rather than against a floor, because the crowded frame, where a color mix-up matters most, is exactly where the boxes still touch. It warns rather than declining the match, which would change association for correct trackers in the crossing and occlusion cases where the geometry is genuinely ambiguous. Cycles of any length count, not just pairs: a crowd whose order rotates leaves every pair pointing one step around the ring and no two objects trading. An exchange counts when most of the cycle's trading pairs are not on top of each other, judged by IOU_MATCH. That is what separates a genuine crossing from a bookkeeping swap, and rate cannot: a busy scene produces exchanges faster than a detector that reorders rarely, so ordering them by frequency gets it backwards. Measured mutual IoU between the cycle's own boxes: honest crossings land at 0.64 to 1.00, reorders and rotations at 0.00, a person beside a car at 0.07. The line is IOU_MATCH and not zero because touching is not the same as coincident. The check needs the coincident frame to have been sampled, so past about 0.35 box widths of movement per frame a head-on pass skips it and a correct id is counted; that is roughly below 10 fps for people walking, and it is pinned by a parametrized test rather than left to be discovered. Past that floor a real crossing occasionally lands as an exchange, so the count drains one every 500 frames to bound the accumulation; measured, that delays the false positive by about 20% rather than preventing it. The exchange branch closes its own window when it warns, since leaving the count above the threshold made every later frame reset the other three counters and would have let one warning silence the rest.

FixedDirect link to Fixed

  • A track_id_key value arriving as a list or tuple no longer keys a track on the whole sequence. An np.ndarray id becomes a plain list the moment frame metadata crosses a JSON hop between openfilter processes, and the list was used as the track key verbatim: every detection in the frame then compared equal, so association silently degraded to position in the detection list and one object was served another's cached color whenever the detector reordered its output. Single-element sequences unwrap to the id; longer ones fall back to IoU.

  • A negative track_id_key value no longer keys a track. A tracker's "not tracked" sentinel is not an id: DEIMv2 emits tracker_id: -1 when ByteTrack is disabled, when its update raises, and on the no-tracking fallback. Keyed on -1, every untracked detection in a frame collapsed onto one track, so a car that appeared where a person had stood inherited that person's color. Negative ids now fall back to IoU matching, which is what an empty track_id_key already does. The check covers ints, floats and numpy scalars, since none of the numpy integer types subclass Python int and supervision's ByteTrack returns tracker_id as an np.ndarray. 0 remains a valid id. Note the cost when the sentinel is transient rather than a whole stream with tracking off: a single glitch frame makes the detection unable to match its own keyed track, since the IoU pool only considers tracks that hold no id, so it opens a fresh unconfirmed track. The frozen color is dropped, that crop is re-scored, and the orphaned track lingers for track_max_age frames before it ages out. The original track is recovered as soon as the id comes back. That costs one extra forward pass and a stale duplicate, which is the intended trade against one object inheriting another's color.

v0.4.7 - 2026-08-19Direct link to v0.4.7 - 2026-08-19

ChangedDirect link to Changed

  • Build the filter image on openfilter-base:py3.14 (was the prior interpreter). The published wheel supports Python 3.14, so the image now ships 3.14. Running on 3.10–3.13 is unaffected.

v0.4.6 - 2026-08-18Direct link to v0.4.6 - 2026-08-18

ChangedDirect link to Changed

  • Update the openfilter dependency to 1.3.0
  • Add Python 3.14 support: raise the requires-python ceiling to <3.15 and add 3.14 to the CI test matrix (3.10–3.13 unchanged).

v0.4.5 - 2026-08-12Direct link to v0.4.5 - 2026-08-12

ChangedDirect link to Changed

  • Migrate the release pipeline from the private-filter track (filter-release-private.yaml publishing to filter-registry-48eec17d-…/filter-color-attribute) to the premium-filter track (filter-release-premium.yaml publishing to premium-filters/filter-color-attribute). Auth switches from a long-lived GAR access key to WIF-based federated auth. The Makefile IMAGE variable and the docker-compose.yaml / docker-compose.detector.yaml image paths are updated to the new location; their FILTER_COLOR_ATTRIBUTE_IMAGE_TAG defaults are bumped to 0.4.5 so first-time compose users pull the current image.

v0.4.4 - 2026-08-10Direct link to v0.4.4 - 2026-08-10

ChangedDirect link to Changed

  • Build the image on openfilter-base (weekly apt-upgraded python-slim) instead of a stale python:X.Y.Z-slim pin, clearing the OS-package CVEs the pin carried.
  • Update the openfilter dependency to 1.2.2

Known gaps, not yet fixedDirect link to Known gaps, not yet fixed

Recorded here so they are not rediscovered. Measurements and the proposed fixes are in docs/superpowers/specs/2026-08-05-prd-coverage-findings.md.

  • Garment mask contamination. A backpack strap leaking into the Upper-clothes mask shifts the primary colour of a plain black t-shirt, and brown is over-represented on small masks such as scarf. This caps FR-3 accuracy and it survived both mask erosion and subtracting the Bag class. It is also what makes multicolour unshippable today, since the two-tone signal is dominated by this contamination rather than by garments.
  • beige / tan is aliased to brown rather than being its own value: adding it to the vocabulary changed 0 of 520 reads. A pixel rule recovers it and was visually confirmed, but on one distinct garment only, which is not enough to ship.
  • Garment sub-type (t-shirt vs hoodie vs jacket) is not achievable with either model measured. GARMENT_ALIASES widens search recall instead; it does not give sub-type precision.

v0.4.3 - 2026-08-06Direct link to v0.4.3 - 2026-08-06

NoteDirect link to Note

  • Re-cut of v0.4.2 under a new version number. v0.4.2 was never git-tagged or released through the automated pipeline: an image tagged 0.4.2 was pushed to Google Artifact Registry manually, out of band, bypassing CI. The release pipeline's own pre-push tag-existence check in GAR correctly refused to overwrite that tag, since a tag already present there is treated as already released. Rather than delete the untracked image, which needs elevated IAM permissions, this release claims the next free version number so CI can publish cleanly. The content is identical to v0.4.2 below; see that section for the actual changes.

v0.4.2 - 2026-08-05Direct link to v0.4.2 - 2026-08-05

FixedDirect link to Fixed

  • FR-8: never fabricate a colour from grayscale evidence. A frame carrying no colour (infrared, or a monochrome camera) now answers "unknown" and is marked meta["monochrome"] = true, instead of being handed to an engine that guesses. Disable with FILTER_MONOCHROME_ABSTAIN=false.

    The check is on the input, not left to the model, because no engine abstains reliably on its own. Measured on 432 deduplicated person crops stripped of colour (BGR -> GRAY -> BGR, so every pixel has R == G == B):

    enginefabricated a colour
    hsv0 of 432 (0.0%)
    siglip2 (default)4 of 432 (0.9%)
    rgb69 of 432 (16.0%), 67 of them brown

    rgb is the serious case and it is deterministic, not marginal: a flat patch containing no colour at all comes back brown. Since rgb is the no-GPU fallback, an operator running it had the problem constantly.

    The test is per frame, never per crop, and that distinction is the design. A black t-shirt has R == G == B in its own pixels, and roughly 60% of real garments read as black/white/gray — a per-crop test would abstain on all of them and destroy the filter's most common answers. What FR-8 concerns is the source carrying no colour, so the frame is what gets tested; a grey garment inside a colour frame stays real information.

    Validated on 267 frames from five real CPD clips: 0 grayscale frames missed, and 0 colour frames wrongly abstained. One frame did trigger the gate — the all-black fade at the end of a clip, which carries no colour and where abstaining is correct.

    The gate also applies to colors served from the per-object cache. A track's color freezes and Track.confirmed never resets, so without this a track that froze during a color frame kept reporting that color after the camera switched to infrared, for as long as it stayed matched. track_colors is on by default, so that was the default path. Cached garment colors abstain the same way, and the cached parts map is now copied rather than shared, so a consumer mutating it cannot rewrite the track's memory.

v0.4.1 - 2026-08-05Direct link to v0.4.1 - 2026-08-05

DocumentationDirect link to Documentation

  • Document the per-garment output schema. The README's "Output metadata" person example still showed three parts and introduced parts as appearing "with person_parsing on", which stopped being true when parsing became the default for siglip2. It now carries a verbatim detection from the v0.4.0 pipeline validation run — recorded under "Sample records" in docs/superpowers/specs/2026-08-05-prd-coverage-findings.md so the claim is checkable — and states the two things a consumer cannot infer from an example: the eight possible keys, and that a garment which is not visible is absent from the map rather than present as "unknown".
  • Document parts_skipped, which was emitted from v0.4.0 but appeared nowhere outside the changelog. Without it a consumer cannot distinguish "no garments were visible" from "this person was never segmented", which is the distinction min_parse_height creates.
  • docs/overview.md, the published landing page, listed neither per-garment color nor the per-object color cache, so the headline features of v0.4.0 and v0.3.0 were invisible to anyone reading the docs site.

v0.4.0 - 2026-08-05Direct link to v0.4.0 - 2026-08-05

AddedDirect link to Added

  • One color per garment. PART_LABELS no longer collapses classes the parser already produces: Dress was folded into upper, Skirt into pants, and Hat/Bag/Scarf were never looked up at all. The filter now reads eight garments — upper, dress, pants, skirt, shoes, hat, bag, scarf. Left and right shoe stay merged, since two colors for one pair is noise. Splitting them out costs no extra segmentation: the forward argmaxes over all 18 classes either way.
  • min_parse_height / FILTER_MIN_PARSE_HEIGHT (default 64): boxes shorter than this skip segmentation and take the whole-box read. Below it the parser's own 512px input is pure upscaling, so the masks are interpolation rather than evidence. Detections are never dropped — only parsing is skipped — and the skip is stamped on the detection (parts_skipped) and counted in the shutdown log.
  • GARMENT_ALIASES / normalize_part(): maps the words an investigator types onto the part the filter can defend (hoodie/t-shirt/jacket → upper, cap/beanie → hat, jeans/shorts → pants, backpack/purse → bag). Exported for the search layer to expand queries with; deliberately not written onto each detection. This buys search recall, not sub-type precision.

ChangedDirect link to Changed

  • person_parsing now defaults to "auto" — on for siglip2, off for hsv/rgb. A plain true default made every classical-engine config raise on the existing guard, which silently broke the no-GPU path. An explicit true with hsv/rgb still raises.
  • The parser's class list is read from the model's own id2label at load time and verified against the configured names. The previous lookup dropped unknown labels silently, so a model with a different head would segment every person into empty masks and fall back to the whole-box read forever, invisibly. A part that resolves to nothing is now dropped with a warning; a model matching nothing raises.

FixedDirect link to Fixed

  • gray is emitted instead of grey. The PRD color vocabulary lists Gray, so an index keyed on that string would silently never match. grey is kept as an accepted input alias, alongside silver, so either spelling normalizes. Same color; this is purely a string-matching fix.

Throughput measured on an A10 over 300 real person crops (median height 129px): the change is throughput-neutral, 33–38 ms per person before and after, across four runs. The extra garment crops batch into a single SigLIP2 forward and the size gate removes segmentation for the 10.7% of people below the threshold.

v0.3.1 - 2026-08-04Direct link to v0.3.1 - 2026-08-04

ChangedDirect link to Changed

  • Update openfilter[all] to >=1.2.1
  • Refresh the docker-compose.yaml openfilter utility image tags to 1.2.1 and pin the filter's own image default to the release version.

v0.3.0 - 2026-07-29Direct link to v0.3.0 - 2026-07-29

AddedDirect link to Added

  • track_colors / FILTER_TRACK_COLORS (on by default): each object's color is scored once instead of once per frame. Detections are matched to short-lived tracks and a track's color freezes once confirm_reads reads agree, so a parked car costs 5 SigLIP2 forwards for as long as it stays parked rather than 30 per second. Measured through video_in -> sam3 -> color -> recorder on an A10, each scene run against the same pipeline with the feature off:

    scenedetectionscrops scoredreductionagreement / detection
    parking lot, fixed CCTV4,39512634.9x89.5%
    parking lot, drone pan1,3049014.5x90.6%
    night street, moving camera4543811.9x82.8%

    A still camera over parked cars is the best case and a moving camera at night the worst; the worst case still removes 92% of the work.

    Coverage is unchanged: every detection still comes out with a colour. The cache changes where a colour comes from, never whether there is one — no detection is added, dropped or left unanswered, so the reduction is avoided compute rather than missing output. Enforced by TestCoverageGuarantee and printed on every benchmark run. The known limitations (a frozen colour is never revisited; an association error costs a whole track; objects freeze on their entry frames) are documented under "What this guarantees, and what it costs" in the README. Every detection now carries color_cached, and the filter reports N of M detections served from cache (P% skipped); K crops scored at shutdown. The saving is counted in detections, not crops: crops and detections are different units, and the whole-frame fallback (a crop on a frame with no detections) or person parsing (several crops for one detection) can push a crop count past the detection count and turn the ratio negative.

  • confirm_reads / FILTER_CONFIRM_READS (5): agreeing reads before a color freezes. A colour that never wins — a night scene where every read abstains — freezes anyway after 2 x confirm_reads reads, bounding the worst case per object. The default came from the measured curve, not from taste: at 3 the saving is 26.6x but newly arrived objects freeze on their entry frames (still small, clipped by the frame edge, half occluded) and 5 of 23 objects take the wrong colour; 5 recovers 3 of those for 41 extra forwards, and 8 recovers none for 55 more.

  • track_max_age / FILTER_TRACK_MAX_AGE (30): frames an object is remembered after it stops being detected. Bounds both staleness (a departing car cannot donate its frozen colour to the next one in that spot) and memory (the table holds only what the scene contained in the last track_max_age frames, so a 30 h video costs what a 30 s one does).

  • track_id_key / FILTER_TRACK_ID_KEY (empty): use an upstream per-object id instead of IoU matching. Empty by default and never inferred — it must be a per-object id, not a per-detection index. filter-sam3-detector's image path emits id as a per-frame COCO index, and pointing this at a field like that propagates a wrong colour to a whole track.

  • docker-compose.bench.yaml + scripts/bench_track_colors.py: the ingestion pipeline shape (video_in -> sam3 -> color -> recorder) run twice, and a reporter that recomputes the saving from color_cached, checks colour agreement against the per-frame baseline, and measures whether a detector's id field really follows an object across frames.

ChangedDirect link to Changed

  • A track's lifetime is now a separate number from the stability vote's horizon. Before, stability_window served as both; it is now track_max_age (default 30), while stability_window still controls how many reads the mode vote considers. Pipelines that relied on stability_window to also age tracks out should set track_max_age explicitly.
  • A detection served from the cache is not counted as an observation by the stability vote, so color_stability keeps describing the real reads instead of drifting toward 1.0 as a frozen colour repeats.
  • Internal: the IoU association and age-out moved from ColorStabilizer into a shared TrackTable, so the colour cache and the stability vote use one table and one match per frame. stability.py is now the vote alone (apply_stability). No change to the modal vote, the "unknown"-never-votes rule, or the tie hysteresis.

v0.2.1 - 2026-07-24Direct link to v0.2.1 - 2026-07-24

  • Fix: rois are accepted in both conventions, normalized [0,1] (filter-huggingface-vision) and pixel coordinates (filter-sam3-detector), via a shared _roi_to_pixels helper used by _crop and _draw_viz. Pixel rois previously degenerated to an empty crop (every detection silently read "unknown") and the viz overlay drew its boxes off-canvas.
  • Fix: pixel rois use the detector's integer coordinates directly instead of normalize-then-rescale, which shifted the crop start one pixel early.
  • Fix: SAM3's degenerate all-integer [0, 0, 1, 1] no-detection fallback box now reads as "no crop" instead of a normalized whole-frame box.
  • Hardening: malformed rois (wrong arity, non-numeric, NaN/inf) and zero-sized images yield color "unknown" instead of raising in the pipeline.
  • Hardening: rois given as numpy arrays no longer crash the truthiness check across every path — _crop/_draw_viz and ColorStabilizer.update (with stability_window > 1) — including the rois container itself arriving as a single (N, 4) numpy array (not roi raises on multi-element arrays), and normalized boxes of numpy float32 scalars (which do not subclass Python float) are detected as normalized instead of silently degenerating to "unknown".

v0.2.0 - 2026-07-22Direct link to v0.2.0 - 2026-07-22

AddedDirect link to Added

  • stability_window / FILTER_STABILITY_WINDOW: temporal mode vote per tracked box (IoU-matched across frames) that stops per-frame color flicker on video. Each detection gains color_stability (the winning color's share of the window). "unknown" reads never vote, so margin_threshold abstentions don't dilute the answer. Off by default (1); works with every engine at zero extra inference cost.

v0.1.3 - 2026-07-20Direct link to v0.1.3 - 2026-07-20

SecurityDirect link to Security

  • Follow-up to the gnutls rebuild: upgrade only libgnutls30 to 3.7.9-2+deb12u7 instead of a blanket apt-get upgrade (Hadolint DL3005), keeping the rebuild reproducible. Same CVE coverage (CVE-2026-33845 / CVE-2026-42010); image-only change, no filter code affected.

v0.1.2 - 2026-07-20Direct link to v0.1.2 - 2026-07-20

SecurityDirect link to Security

  • Rebuild on patched bookworm base to clear CVE-2026-33845 and CVE-2026-42010 (GnuTLS). The python:3.11.12-slim base ships gnutls28 3.7.9-2+deb12u4; the Dockerfile now runs apt-get upgrade so the image picks up 3.7.9-2+deb12u7 (and any other pending bookworm security updates). Image-only change; no filter code affected.

v0.1.1 - 2026-07-16Direct link to v0.1.1 - 2026-07-16

AddedDirect link to Added

  • Optional human parsing for people (person_parsing): segment clothing with mattmdjaga/segformer_b2_clothes and read the color of each part (upper/pants/shoes) instead of the whole box. Off by default. Reads clothing regions only; does not classify skin, race, or any protected attribute.

ChangedDirect link to Changed

  • Viz label is now just the color name; readable contrast text.
  • Color-cycle video is the default docker compose up demo (VideoIn → filter → Webvis); the detector pipeline moves to docker-compose.detector.yaml.

v0.1.0 - 2026-07-15Direct link to v0.1.0 - 2026-07-15

AddedDirect link to Added

  • Initial release: read the color of each detected object in an OpenFilter pipeline.
  • Three engines selected by method: siglip2 (zero-shot, GPU), hsv and rgb (classical, no GPU).
  • Reads detections from frame.data["meta"]["detections"], writes color + color_margin per detection.
  • Whole-frame fallback when no detections are present.
  • viz visualization topic with boxes and color names drawn, for Webvis.
  • Confidence-margin abstention (margin_threshold) for the siglip2 engine.