Repository navigation
Crosswalk follow-ups: recall285, crosswalk_s6 (s4 stays), fa-sheet (#285) - #301
jonfroehlich wants to merge 30 commits into
Conversation
…ploratory) cartop_mask.py scores three arms on crosswalk_s4's rated cards (fit on the two mining pages, test on the evaluation draws, intervals by Mapillary sequence): the labeler's existing 49 deg rig mask, a single y cut-off, and one box per mount. On the 440 test detections the rig mask removes 7 of 72 false alarms and 0 of 359 crosswalks; a single cut-off costs crosswalks at every useful level; per-mount boxes add 5 (all behind the Trimble vehicle) and do not transfer for the two GoPro mounts. Results in docs/crosswalk_followups_285.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
C: recall_check.py draws one pano per OSM road-graph intersection (Laurens 95, Juneau 80), builds a detection-free marking page on gt_gallery, and scores marks one-to-one against a model's detections. s4 predictions on the 175 panos are committed; the page awaits ratings. A: osm_arm.py style-check (Vistas component at confirmed clicks: Columbia brick 0.81, Richmond 0.97, Laurens 7 of 16) and geometry-check (B1 + B2 from OSM nodes against clicks on Mapillary and Panoramax panos). First city scout table in the doc. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Juneau: s4 at 0.23 finds 63 of 110 marked crosswalks within 25 m (0.57, pano bootstrap 0.47 to 0.67). Laurens: 1 of 11 on 3 panos; 92 of 95 intersection panos have no crosswalk. Ratings and scores committed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Re-scores the same marks against the Vistas component at each click. Juneau within 25 m: 63 -> 66 of 110; the change is confined to the nearest crosswalks (10 -> 13 of 29). Where the segmenter sees no region s4 finds 7 of 21, against 59 of 89 where it does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ision gate Sacramento: 1,458 positives on 830 Mapillary panos; Jon rated 97 of 100 sampled placements crosswalk (bar 91). Kaysville: 421 positives on 300 panos; 98 of 100. Brussels region: crossings and an 882-pano list only, no images yet. - osm_city.py: crossings / panos / meta / store. Pano lists can come from a streetscape-tracker Mapillary census (--tracker-census); images are fetched by sidewalk-panorama-tools from pano_list.csv into a Project Sidewalk-layout pano store. - osm_arm.py: city-score; city-place reads the pano store. - score_274.py cards: --pano-dir accepts a sharded pano store. - Per-city crossings, raw OSM pulls, candidates, pano lists, placements, the rated samples, Jon's ratings and scores. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…sit on small snapped regions Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…run or training job root_v6 = root_v4 plus auto-placed OSM positives from Sacramento, Kaysville and Brussels (two cuts: region > 100 px, at most 40 deg below the horizon), two doses, three seeds. One primary (Juneau marks, three-seed mean), eight guards, six of them automatic. Approved by Jon as written. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…; no s6 job yet - osm_arm.py city-export: the pre-registered label rules -> 3,040 positives on 1,705 panos (half dose 1,517 on 852). Collided placements add no ignore point (amendment: they zeroed the weight of the positive they sit on). - export_stage2.py add-panos: --source, optional --census-rawlabels. - recall_check.py compare: seed-averaged recall and confirmed-empty false alarms. - score_274.py retention: guards 4 and 5 and their seed spread. - Calibration (klone 43218286-43218295): s4 seeds find 63, 59, 77 of 110 Juneau marks; Seattle retention spread is 40 of 234. - s6_calibration.sh, s6_train.sh: the klone submit scripts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…285) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ys (#285) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…heet) (#285) Every detection guard 6 counts, grouped into spots across models, as a local HTML sheet with crops; thresholds come from the compare.json files and the sheet refuses to build unless its counts equal guard 6's. Doc: most new spots are plain road surface, not a horizon artefact; some vehicle above the rig mask; untested hypothesis about unpainted auto-placed positives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…85, natives) Labels v6 full/half, the auto-placed OSM panos as trained, s6 and calibration predictions, the recall285 draws, page and contact sheet, and the Sacramento, Kaysville and Brussels store natives. Every v6 training JPEG was checked to be in the staged archive by sha256. Klone checkpoints and slurm logs come next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crosswalk_s6full/_seed2/_seed3, crosswalk_s6half/_seed2/_seed3 and the step control crosswalk_s4_steps1397, pulled from klone's durable /gscratch/makelab/jonf/crosswalk274 (every sha256 matches its .sha256), plus the 142 RampNet274/logs files from the calibration, training (incl. the six quota failures and reruns), inference and scoring jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…heet.py (#285) Written before any crop was built or looked at. pos_sheet.py draws a seeded, stratified sample of training positives (auto 70/city, human 50, sdot_b2 30), renders the training disc on crops from root_v6_full, and scores AI pre-pass tags against the coded rule. recall_check._crop takes the window size as arguments (defaults unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…raised by crossing style (#285) AI pre-pass (claude-opus-5-5, not ground truth) on 290 blind cells: auto no-paint 4.3% (2.3-8.0) vs human 4.1%, under the pre-registered 0.10 bar. Peak-off-paint flag raised (auto 55.8% vs human 36.7%, sdot_b2 30.0%), driven by Sacramento two-line crossings (47 of 49 peaks between the lines; human two-line labels do the same, 9 of 9). Sample, tags and summary committed; summary rederived by a test. Skim section now shows each tier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 records (jobs named cw285_*, sacct -X -D -u jfroehli since 2026-11-01, pulled read-only on a klone login node on 2026-11-25), 65.39 GPU-hours, all on ckpt-all, $0, all run on 2026-11-13. Training 60.55 GPU-h over 14 records (smoke run, seven finished runs, and the six first runs that failed on the scrubbed quota error: 18.30 GPU-h); inference 4.84 GPU-h over 57 jobs (ten s4 calibration jobs 0.48, 47 s6 jobs 4.36). Every job id the study doc names is in the dump. Recorded before sacct retention drops it. - docs/data/compute/sacct_klone_2026-11-25_cw285.txt: the dump, LF, sha256 e3ecc206..., pinned in compute_cost.md. - analysis_out/compute_log.jsonl: its parse, appended by slurm_usage.py with --out pointed at this checkout. - compute_cost.md: per-job training table, inference ranges, the command. - crosswalk_followups_285.md: a Compute and time section with the totals; the local CPU/RTX 3070 steps that have no record are stated as a gap. - tests: the ledger-equals-dumps test covers the new dump and pins its totals; the doc's tables are checked against the ledger rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 4.84 CI on 7a379e8 failed two ways, both fixed here. - tests/test_gitignore_tracked.py (arrived with the main merge, #251 part 3) found 19 tracked s6 files matched by .gitignore: v2_labels/s6/, s6_matched/ and the (b') preds of crosswalk_s6full, crosswalk_s6half and crosswalk_s4_steps1397. They were force-added on this branch before main had the test. Carve-outs added in the s4/s5 style; no untracked file is newly un-ignored. - The s6 inference GPU-hours sum to 4.355 exactly. Python 3.12's compensated sum() rounds that to 4.36 and 3.10's naive sum() to 4.35, so the new ledger assertions failed on 3.10. They now use math.fsum. - The inference total over all 57 jobs is 4.8342, so 4.83; the previous commit (and its message) said 4.84 by adding the two rounded parts. compute_cost.md and crosswalk_followups_285.md corrected, and the total is now asserted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review 1 of #301Head reviewed: Verdict: the numbers hold; not ready to merge as it stands. Every headline number I re-derived from committed inputs came out as the doc states. One public-text item blocks (B1). The main should-fix items are that three committed s6 score files are not what the scorer at this head writes (S1), and that no check or test pins the numbers that decided "s4 stays" (S2). What I re-derived, and it matched
Tests: Pre-registration order that the history does support: the A4 text was committed at 06:48:13 PST on 2026-11-13 ( BlockingB1. The doc has a sentence about a data source's licence terms. Should-fixS1. Three committed s6 score files are invalid JSON and are not what the scorer at this head writes. S2. Nothing pins the numbers that decided the round. I applied 33 one-line mutations to the new code and ran the tests that cover each file; 24 survived. The ones that matter:
Killed: the wrap distance, the seam crop (the mutant loops forever, so the test would time out), These outputs re-derive from committed inputs in seconds (the ones I re-ran are in the table at the top), so a S3. The new writers do not pin line endings, so a rerun on Windows does not reproduce the committed bytes. S4. The four human rating files have no rubric with them. S5. Two "written before the data" claims are not supported by the history, and the approvals have no source.
S6. The docs index row is stale. S7. S8. One sentence about the gate misses is wrong. Nits
🤖 Generated with Claude Code — Fable 5.2, claude-fable-5-2 |
Review 1, B1. The paragraph notes that one sentence was removed after the A4 text was fixed and that it stated no rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ew 1, S1) The three s6 score files (v2_labels/s6/scores.json, s6_matched/scores.json, s6_matched/bprime/scores.json) were written on 2026-11-13 by the scorer before ffd50d7 and held 543, 543 and 10 bare NaN tokens. Each was parsed with Python's json (NaN allowed) and written back through score_274.write_json (finite, allow_nan=False, newline='', indent 1). Proof that only the NaN tokens changed: for each file the old bytes with every NaN token replaced by null equal the new bytes, and a structural compare finds every non-NaN value identical. Guards 1 and 2 re-derived from the new files: test F1 means 0.836 / 0.837 / 0.841 / 0.843 and (b') recall 0.687 / 0.673 / 0.705 / 0.688, as in the doc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cision numbers (review 1, S3, S2 part 1) S3. The new writers in recall_check.py, recall_region.py, cartop_mask.py, osm_arm.py and osm_city.py opened JSON files without newline="" and wrote CSV with csv's default \r\n terminator, so a rerun on Windows did not reproduce the committed LF bytes. Every one now opens with newline="" and writes CSV with lineterminator="\n"; score_274.py cmd_retention goes through write_json like the rest of that file. No committed output changes: check_285 below regenerates 29 of them with these writers and every one is byte-identical to the committed file, so nothing needed regenerating. S2, part 1. check_285.py (the new check_all entry crosswalk_followups_285, in --ci, about 20 s) re-runs from committed files into a temp dir and byte-compares: - recall_check.py compare: s4_calibration, s6_full, s6_half, s6_steps (the primary and guard 6); - score_274.py retention: calibration and the three arms, Seattle and the fresh Juneau draw (guards 4 and 5, eight files); - score_274.py label-recall: Columbia, seed 1 of each arm (guard 3); - recall_check.py score and recall_region.py score (section C); - cartop_mask.py score (section B); - osm_arm.py city-score for the three A3 gates. Guards 1 and 2 need the Stage 2 root and are not re-run; the note says so. Writing the check found one more hazard: retention read a missing predictions path as an empty file and counted 0 kept. It now refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…I; rubric sidecar (review 1, S2 part 2, S4) S2. tests/test_crosswalk_285_decisions.py pins, on synthetic inputs: guard 6's rig mask, the 25 m population, one-to-one matching and what counts as a confirmed-empty pano (_pano_stats); primary_met needing both the interval and seed 1, and the seed spread's abs (cmd_compare); the score threshold (cmd_score); fa-sheet's strongest-first spots and its own count check against compare.json; retention's verdict filter, threshold and radius; the pano-store path cards reads; add-panos --source; and pos_sheet.tally's three constants, the point flag's margin over both strata, both not_supported branches, the boundary of the bar and the training weights. test_doctests now also runs recall_check, recall_region, pos_sheet and osm_arm. Fable's 33-mutant harness, rerun on this tree: all 33 killed (24 survived before). To test the cards path rule, cmd_cards' nested image_path is now the module-level card_image_path (same behaviour). check_285.py takes --check (what it always does) so the docs index can label it a check; the check_all entry passes it. S4. analysis_out/crosswalk_followups_285/ratings_definitions.csv records, per human rating file, the instruction text its page showed: recall_check.BANNER for the missed-crosswalk page, paint_brick for the three A3 pages, with a note that Sacramento's and Kaysville's question and unsure rule were written down after those pages were rated. test_ratings_definitions_sidecar_285 checks the list against the files on disk and the text against the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s (review 1, S5-S8, N1-N6) S5. The doc now says only what git history supports. The A3 gate and its 91 bar first appear in a92264d (2026-11-12 07:05 PST), after Sacramento and Kaysville were rated (rated_at in the committed CSVs); the heading's "written before any placement was looked at" is replaced by those times, and only Brussels was rated under committed text. The A4 pre-registration cites 743cfba (06:48) against the first calibration and training submits (06:52, 07:12, from the committed sacct dump). A4 follow-up 2's pre-registration (10884ac) and result (98d3f37) are 7 min 58 s apart; the doc says so and that tally and its constants are identical in both. Jon's approvals and choices (plan, Sacramento, the A4 text, Juneau and Laurens out, the 91 bar) are stated as not recorded in writing: no source exists in #285, #274, #296, #300 or #301. S6. docs/README.md: the row gives the s6 outcome and labels osm_arm.py and recall_check.py as checked via check_285.py. S7. archive_274.py: v6 full is root_v4 plus 1,705 panos (4,294 + 1,705 = 5,999), half root_v4 plus 852; the README text no longer names branches. S8. The three large-region A3 misses are two Sacramento cards and one Kaysville vehicle card, from the committed a3_score.json files. N1. <keep> and <sal-juneau> placeholders in the doc and three docstrings. N2. compute_cost.md explains 4.36 (rounded rows) against 4.3547 (dump). N4. .gitattributes keeps the #285 outputs and the draw lists root_v6's manifests pin as LF. N5. recall.json's 120 against guard 6's 119. N6. The page line no longer says it was never opened. Also: a literal \n in the Sacramento replication block, and a note that POINT_FLAG_MARGIN is now pinned by test_crosswalk_285_decisions.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Answer to review 1Head before the fixes:
B1. Removed a sentence that does not belong in a public doc (B1). The paragraph now notes that one sentence was removed after the A4 text was fixed and that it stated no rule. It is still in the branch history ( S1. Each of the three s6 score files was parsed with Python's S2. New check Writing it turned up one more hazard:
S3. Every committed-output writer in S4. S5. The doc now states the commit times, not the order it claimed:
I did not post on #285. A line there recording the approvals and the outcome would be Jon's statement, so it is left for him. S6. The index row gives the s6 outcome and the follow-ups. It labels S7. v6 full is now described as S8. Corrected from the committed N1.
N2. N3. No change. Jon decided for #300 to leave committed floats unrounded. Nothing here needs rounding to be portable: the byte compare passes on Windows, and the tests pass on CI's 3.10 and 3.12. N4. N5. A sentence explains N6. The page line now says Jon rated all 175 on it. N7. No change. The ad hoc counts are marked as such. The style split, the contributor counts and the A0 table remain unverified from the repo, as you noted. Also fixed: a literal Verification. 🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5 |
Review 2 of #301Head reviewed: Verdict: ready to merge from this review's side. B1 and S1 to S8 are closed, the fixes changed no committed number, and all 33 of my mutants are now killed. Three nits remain open (below); none blocks. Whether to rewrite the branch history for B1, and whether to post the approvals on #285, are Jon's calls and are not findings. What I ran
Status of each finding
The three disagreements
The two code changes I was asked to check
New findings (all nits)
Unverified, as before
🤖 Generated with Claude Code — Fable 5.2, claude-fable-5-2 |
…dary tests (review 2, N8-N10)
N8. check_285 now runs osm_arm.py city-export for the three cities and
byte-compares positives_{full,half}.csv, ignore.csv, panos_{full,half}.txt
and summary.json. Its one input outside the repo, each city's
records.jsonl, is read only for pano positions, so the check writes
stand-ins from the committed positions.csv; positions.csv itself is not
compared and the docstring and the check_all note say so. MIN_REGION_PX
100 -> 50 is now killed (city-export's own assert, which the check
reports as a problem instead of crashing).
N9. check_285 also runs recall_check.py fa-sheet with blank stand-in
panos and byte-compares recall/fa_sheet/s6/{spots.csv,summary.json}
(neither depends on pixels). The docstring and note no longer say
test_fa_sheet_285.py pins those counts. 37 outputs compared, 0 problems.
N10. test_retention_seed_spread_is_absolute_when_seed_1_keeps_fewest
kills dropping abs from cmd_retention's seed spread;
test_supported_needs_the_wilson_lower_bound_strictly_above_human kills
lo > p_h -> >= in pos_sheet.tally.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Answer to review 2All three nits are fixed in
The touched tests pass (201). 🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5 |
Opens a PR for the crosswalk follow-ups (#285), which have lived on this branch with no PR.
Base is now
main: the Stage 1 PR this was stacked on (#300) merged, and main was merged into this branch (one conflict,.gitignore, resolved by keeping both sides' entries). #296 (crosswalk-supervision-s7) is stacked on this one.What's here
docs/crosswalk_followups_285.mdand its code:recall_check.py comparereproduces s4's 63 of 110 on Juneau.crossing=markedprojection + Vistas snap; auto positives from Sacramento, Kaysville and Brussels).recall_check.py fa-sheetwith tests, and the A4 follow-up 2 (no-paint hypothesis not supported).Compute
Every klone job of crosswalk_s6 (jobs named
cw285_*, all on 2026-11-13) is now inanalysis_out/compute_log.jsonl: 71 records, 65.39 GPU-hours, $0 (kloneckpt-allis free).sacct -X -Ddump is committed (docs/data/compute/sacct_klone_2026-11-25_cw285.txt, hash pinned indocs/compute_cost.md), so the rows re-derive without cluster access. The per-job table is indocs/compute_cost.md; the doc's new "Compute and time" section has the totals and lists the local CPU/RTX 3070 steps that have no record.Context for the next round
The Juneau AI Crosswalk pilot (sidewalk-auto-labeler#168; failure classes in #298) is the motivation for the next retraining round:
That round's pre-registration builds on this branch's scorer, so this branch should be reviewed first.
🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5