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.tomldeclares both snapshots, the SigLIP2 colour reader and the garment detector, pinned to a commit, and.github/workflows/model-bundle.yamlwires 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-modelsand aModel weightssection in README, so an operator has something to pointFILTER_MODEL_PATHandFILTER_PARSING_MODEL_PATHat, in both the localmake runshape and the different shape an imageVolumes mount produces.- The colour reader entry is
color-reader. The bundle built by hand spelled itcolour-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.pyloadedmattmdjaga/segformer_b2_clothes, which declareslicense: otherwith no text and is a fine-tune ofnvidia/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 byvalentinafevu/yolos-fashionpedia: weights MIT, basehustvl/yolos-smallApache-2.0, dataset Fashionpedia CC-BY-4.0, loaded with standard transformers classes and notrust_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_modelnow 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_pathloads 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 noconfig.jsonand safetensors weights is rejected innormalize_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 withuse_safetensors=Trueon purpose, and the new detector publishes onlypytorch_model.binonmain, so a snapshot copied straight from the hub has to be converted before it is mounted.model_pathdoes 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
garmentsalongsideparts: a list of{part, garment, proxy, color, color_margin, score}, so search can ask for "blue jacket" and not only "blue upper".partsis 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.proxyseparates the two meanings ofgarment: 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_partsis 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.TrackTablenow warns once when the configuredtrack_id_keynever 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 withtrack_id_keyempty. Observed in the wild: SAM3 emits anidthat increments across the whole stream, so pointingtrack_id_keyat it is worse than the default IoU matching. The warning names the field and says what to do.TrackTablealso 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.TrackTablewarns once when the configuredtrack_id_keyyields 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-pointtrack_id_keywere the two that said nothing. The message names the field and tells the operator to check it against what the detector upstream emits.TrackTablewarns once whentrack_id_keyswaps 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 byIOU_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 isIOU_MATCHand 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_keyvalue arriving as alistortupleno longer keys a track on the whole sequence. Annp.ndarrayid 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_keyvalue no longer keys a track. A tracker's "not tracked" sentinel is not an id: DEIMv2 emitstracker_id: -1when 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 emptytrack_id_keyalready does. The check covers ints, floats and numpy scalars, since none of the numpy integer types subclass Pythonintand supervision's ByteTrack returnstracker_idas annp.ndarray.0remains 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 fortrack_max_ageframes 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-pythonceiling to<3.15and 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.yamlpublishing tofilter-registry-48eec17d-…/filter-color-attribute) to the premium-filter track (filter-release-premium.yamlpublishing topremium-filters/filter-color-attribute). Auth switches from a long-lived GAR access key to WIF-based federated auth. The MakefileIMAGEvariable and thedocker-compose.yaml/docker-compose.detector.yamlimage paths are updated to the new location; theirFILTER_COLOR_ATTRIBUTE_IMAGE_TAGdefaults are bumped to0.4.5so 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 stalepython:X.Y.Z-slimpin, 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-clothesmask shifts the primary colour of a plain black t-shirt, andbrownis over-represented on small masks such asscarf. This caps FR-3 accuracy and it survived both mask erosion and subtracting theBagclass. It is also what makesmulticolourunshippable today, since the two-tone signal is dominated by this contamination rather than by garments. beige/tanis aliased tobrownrather 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_ALIASESwidens 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.2was 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 markedmeta["monochrome"] = true, instead of being handed to an engine that guesses. Disable withFILTER_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 hasR == G == B):engine fabricated a colour hsv0 of 432 (0.0%) siglip2(default)4 of 432 (0.9%) rgb69 of 432 (16.0%), 67 of them brownrgbis the serious case and it is deterministic, not marginal: a flat patch containing no colour at all comes backbrown. Sincergbis 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 == Bin 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.confirmednever 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_colorsis on by default, so that was the default path. Cached garment colors abstain the same way, and the cachedpartsmap 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
partsas appearing "withperson_parsingon", which stopped being true when parsing became the default forsiglip2. It now carries a verbatim detection from the v0.4.0 pipeline validation run — recorded under "Sample records" indocs/superpowers/specs/2026-08-05-prd-coverage-findings.mdso 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 distinctionmin_parse_heightcreates. 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_LABELSno longer collapses classes the parser already produces:Dresswas folded intoupper,Skirtintopants, andHat/Bag/Scarfwere 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(default64): 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_parsingnow defaults to "auto" — on forsiglip2, off forhsv/rgb. A plaintruedefault made every classical-engine config raise on the existing guard, which silently broke the no-GPU path. An explicittruewithhsv/rgbstill raises.- The parser's class list is read from the model's own
id2labelat 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
grayis emitted instead ofgrey. The PRD color vocabulary listsGray, so an index keyed on that string would silently never match.greyis kept as an accepted input alias, alongsidesilver, 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.yamlopenfilter utility image tags to1.2.1and 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 onceconfirm_readsreads agree, so a parked car costs 5 SigLIP2 forwards for as long as it stays parked rather than 30 per second. Measured throughvideo_in -> sam3 -> color -> recorderon an A10, each scene run against the same pipeline with the feature off:scene detections crops scored reduction agreement / detection parking lot, fixed CCTV 4,395 126 34.9x 89.5% parking lot, drone pan 1,304 90 14.5x 90.6% night street, moving camera 454 38 11.9x 82.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
TestCoverageGuaranteeand 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 carriescolor_cached, and the filter reportsN of M detections served from cache (P% skipped); K crops scoredat 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 after2 x confirm_readsreads, bounding the worst case per object. The default came from the measured curve, not from taste: at3the 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;5recovers 3 of those for 41 extra forwards, and8recovers 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 lasttrack_max_ageframes, 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 emitsidas 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 fromcolor_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_windowserved as both; it is nowtrack_max_age(default30), whilestability_windowstill controls how many reads the mode vote considers. Pipelines that relied onstability_windowto also age tracks out should settrack_max_ageexplicitly. - A detection served from the cache is not counted as an observation by the stability vote,
so
color_stabilitykeeps describing the real reads instead of drifting toward 1.0 as a frozen colour repeats. - Internal: the IoU association and age-out moved from
ColorStabilizerinto a sharedTrackTable, so the colour cache and the stability vote use one table and one match per frame.stability.pyis 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_pixelshelper used by_cropand_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_vizandColorStabilizer.update(withstability_window > 1) — including theroiscontainer itself arriving as a single (N, 4) numpy array (not roiraises on multi-element arrays), and normalized boxes of numpyfloat32scalars (which do not subclass Pythonfloat) 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 gainscolor_stability(the winning color's share of the window)."unknown"reads never vote, somargin_thresholdabstentions 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
libgnutls30to3.7.9-2+deb12u7instead of a blanketapt-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-slimbase shipsgnutls283.7.9-2+deb12u4; the Dockerfile now runsapt-get upgradeso the image picks up3.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 withmattmdjaga/segformer_b2_clothesand 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 updemo (VideoIn → filter → Webvis); the detector pipeline moves todocker-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),hsvandrgb(classical, no GPU). - Reads detections from
frame.data["meta"]["detections"], writescolor+color_marginper detection. - Whole-frame fallback when no detections are present.
vizvisualization topic with boxes and color names drawn, for Webvis.- Confidence-margin abstention (
margin_threshold) for thesiglip2engine.