Publish experiment b622e76deceb419ab9c5aa80a8f8280c (rollouts)
Browse filesFiles changed (25)
- .gitattributes+1
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/config/84a8bfd13a052ce1a7a804639994c19349309bea0e3099b111d7b11466ce6cfc/config.yamlAdded+88
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/50dd45bb896a33f557ee2b3fee7067efb155f1880697a16150812010b7c91889/comparison.jsonAdded+3
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/56dc24637d0733bdaaddc66035878887262b1aa7c8a20dbf9374a1e0d027e0b5/metrics.jsonAdded+113
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/806ab1291d77d498cd010a8d22d778b0fbec76fdeda39d3775fcb0b73ef80910/verification.jsonAdded+254
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/b068b4b13bfc8cd2ff263e9a461f25b7fdb9f2b647829613520aa34c850bc9cd/preservation_before.jsonAdded+374
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/2d0892471283262e321f0d5e30dab16bb902e955558ab82c7a8913e348a03340/comparison.htmlAdded+10
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9/geometry.pyAdded+255
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/47804e84d5d6d1a253d91dc60760eebeb8db708087e9c679c700f5f794022f14/tradeoffs.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/51636409d76284041db14a047c1660b57d58bb695931d2b54b99f1542b31a2b8/02c_structural_edges.mdAdded+360
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80/structural_edges.pyAdded+126
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/65b6e73cbbe0752efc2b2085609c628d73ac9c919261efdcf9fb3fba73885bca/f0015_comparison.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/6ec93af458d5ef898542eea6aa610073d4123a497f478704f0ac4402bc3992ee/f0080_comparison.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/835b9c5fe215e9295a9c029e3bfee8ed0a6887d72d257754bf1a0b77c1e6663d/f0045_comparison.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/af2a7593f05b8b80c8dec190fa5e7f34313155b370c0892df9427769776697be/f0120_comparison.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c/baseline_document_before_task02c.mdAdded+376
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b/run_normal_comparison.pyAdded+453
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3/report-b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3.zipAdded+3
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/c40d64645f27a5a8956b1fa647ff9a11e278963f583541328662e1884b3a5a1f/density.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/ca56344eced8d5798c9da8732c5a0a3246226aec45e830555f3a00965a2b620c/implementation.patchAdded+1071
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc/normal_diagnostics.pyAdded+303
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/da90f19e3af5dd4b1c79795544d44c673ca0da54f30575acfd9e236f1bf15212/f0000_comparison.pngAdded
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262/normal_estimators.pyAdded+130
- visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe/run_structural_edges.pyAdded+411
- visual/b622e76deceb419ab9c5aa80a8f8280c/manifests/e509ce52bf751eaefd5a6f1ec66b0f688d5fff244fee580732f92a3fff546ccd/manifest.jsonAdded+173
59 unmodified lines60616259 unmodified lines*.webm filter=lfs diff=lfs merge=lfs -textvisual/4b1c377ae2044344a4f596b249627d89/artifacts/metrics/68e8f59f7b091d5ade085452084a7b5caedc9deca6f164e707952519d40a30e2/comparison.json filter=lfs diff=lfs merge=lfs -textvisual/03d9777a004349e3a794147e4e55a2f0/artifacts/metrics/ecdb9a75c006a9822b674871bd969a4548da3269795aaadca003a2d1d9a2b940/optimization.json filter=lfs diff=lfs merge=lfs -text59 unmodified lines6061626359 unmodified lines*.webm filter=lfs diff=lfs merge=lfs -textvisual/4b1c377ae2044344a4f596b249627d89/artifacts/metrics/68e8f59f7b091d5ade085452084a7b5caedc9deca6f164e707952519d40a30e2/comparison.json filter=lfs diff=lfs merge=lfs -textvisual/03d9777a004349e3a794147e4e55a2f0/artifacts/metrics/ecdb9a75c006a9822b674871bd969a4548da3269795aaadca003a2d1d9a2b940/optimization.json filter=lfs diff=lfs merge=lfs -textvisual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/50dd45bb896a33f557ee2b3fee7067efb155f1880697a16150812010b7c91889/comparison.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ "angle_thresholds_deg": [ 2, 5, 10, 15, 20, 25, 30, 40, 60, 90, 180 ], "camera": "base_camera", "depth_gate_abs_m": 0.01, "depth_gate_rel": 0.02, "device": "cpu", "full_resolution": true, "gt_detector_input": false, "input": "/Users/jeong-yunseong/Documents/programming/graph-recurrent-VLA/visual/data/step2/ep000.npz", "input_sha256": "22ad72d776057da9ed5f85014cba47b4603e421623f29763c88edb159a5087ba", "masks": "/Users/jeong-yunseong/Documents/programming/graph-recurrent-VLA/visual/results/runtime_tracking/ep000/masks.npz", "masks_sha256": "6bf9555a9c97c83a09d9733e582e9c4b9509f95e9dd06854ba05d3ac25fb7042", "matplotlib": "3.11.2", "methods": [ "baseline", "fd2", "pca5" ], "numpy": "2.4.6", "pcl": { "headers": [], "installed_or_built": false, "libraries": { "pcl_common": null, "pcl_features": null }, "pkg_config": null, "python_modules": { "pcl": false, "pclpy": false }, "reason": "No usable PCL dependency on this host; no installation or binding attempted", "rgb_canny": false, "status": "NOT RUN" }, "platform": "macOS-27.0.1-arm64-arm-64bit", "python": "3.11.13", "rgb_canny": false, "robot_segmentation_ids": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "scipy": "1.17.1", "seed": 0, "segmentation_map_sha256": "ffd4cf9c568b4d3ef2cec161e22c9a49b78212ae0b43c43d763d1fa4bb1f0027", "selected_sources": [ 0, 15, 45, 80, 120 ], "source_sha256": { "visual/runtime/geometry.py": "36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9", "visual/runtime/test/normal_diagnostics.py": "d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc", "visual/runtime/test/normal_estimators.py": "e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262", "visual/runtime/test/run_normal_comparison.py": "b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b", "visual/runtime/test/run_structural_edges.py": "eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe", "visual/runtime/test/structural_edges.py": "5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80" }, "task": "02-C", "timing": "warmup excluded; rotated order; both objects; shared XYZ charged to each; no I/O, GT, sweep or plotting", "tolerance_m": 0.003, "tolerance_px": 2.0}123version https://git-lfs.github.com/spec/v1oid sha256:50dd45bb896a33f557ee2b3fee7067efb155f1880697a16150812010b7c91889size 41873898123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113[ { "metrics": { "eval/task02c/baseline/candidates": 432182, "eval/task02c/baseline/candidates_without_visible_reference": 36579, "eval/task02c/baseline/covered_references": 34087, "eval/task02c/baseline/location/candidate_to_gt_mm/count": 395603, "eval/task02c/baseline/location/candidate_to_gt_mm/max": 32413.748046875, "eval/task02c/baseline/location/candidate_to_gt_mm/mean": 23.949190920128306, "eval/task02c/baseline/location/candidate_to_gt_mm/p50": 9.992878913879395, "eval/task02c/baseline/location/candidate_to_gt_mm/p95": 74.68550109863281, "eval/task02c/baseline/location/candidate_to_gt_mm/p99": 192.0931890869137, "eval/task02c/baseline/location/candidate_to_gt_px/count": 395603, "eval/task02c/baseline/location/candidate_to_gt_px/max": 81.50060272216797, "eval/task02c/baseline/location/candidate_to_gt_px/mean": 13.31850177702513, "eval/task02c/baseline/location/candidate_to_gt_px/p50": 10.0, "eval/task02c/baseline/location/candidate_to_gt_px/p95": 37.65541458129883, "eval/task02c/baseline/location/candidate_to_gt_px/p99": 53.15073013305664, "eval/task02c/baseline/location/gt_to_candidate_mm/count": 35869, "eval/task02c/baseline/location/gt_to_candidate_mm/max": 58.51726531982422, "eval/task02c/baseline/location/gt_to_candidate_mm/mean": 1.03136535477224, "eval/task02c/baseline/location/gt_to_candidate_mm/p50": 0.5821437239646912, "eval/task02c/baseline/location/gt_to_candidate_mm/p95": 2.6870691776275635, "eval/task02c/baseline/location/gt_to_candidate_mm/p99": 15.236849822998012, "eval/task02c/baseline/location/gt_to_candidate_px/count": 35869, "eval/task02c/baseline/location/gt_to_candidate_px/max": 18.72819709777832, "eval/task02c/baseline/location/gt_to_candidate_px/mean": 0.20233855207243154, "eval/task02c/baseline/location/gt_to_candidate_px/p50": 0.0, "eval/task02c/baseline/location/gt_to_candidate_px/p95": 1.0, "eval/task02c/baseline/location/gt_to_candidate_px/p99": 4.529750308990426, "eval/task02c/baseline/matched_candidates": 68643, "eval/task02c/baseline/one_to_one": 33603, "eval/task02c/baseline/one_to_one_f1": 0.1435869168103476, "eval/task02c/baseline/one_to_one_precision": 0.0777519656070822, "eval/task02c/baseline/one_to_one_recall": 0.9368256711923946, "eval/task02c/baseline/precision": 0.1588289192978884, "eval/task02c/baseline/recall": 0.9503192171513005, "eval/task02c/baseline/references": 35869, "eval/task02c/fd2/candidates": 107297, "eval/task02c/fd2/candidates_without_visible_reference": 8038, "eval/task02c/fd2/covered_references": 32669, "eval/task02c/fd2/location/candidate_to_gt_mm/count": 99259, "eval/task02c/fd2/location/candidate_to_gt_mm/max": 32413.748046875, "eval/task02c/fd2/location/candidate_to_gt_mm/mean": 45.29030724228247, "eval/task02c/fd2/location/candidate_to_gt_mm/p50": 1.4133368730545044, "eval/task02c/fd2/location/candidate_to_gt_mm/p95": 164.69136199951143, "eval/task02c/fd2/location/candidate_to_gt_mm/p99": 303.12290039062356, "eval/task02c/fd2/location/candidate_to_gt_px/count": 99259, "eval/task02c/fd2/location/candidate_to_gt_px/max": 81.50060272216797, "eval/task02c/fd2/location/candidate_to_gt_px/mean": 11.140985258178082, "eval/task02c/fd2/location/candidate_to_gt_px/p50": 1.4142135381698608, "eval/task02c/fd2/location/candidate_to_gt_px/p95": 47.01063537597656, "eval/task02c/fd2/location/candidate_to_gt_px/p99": 69.86149597167969, "eval/task02c/fd2/location/gt_to_candidate_mm/count": 35869, "eval/task02c/fd2/location/gt_to_candidate_mm/max": 58.51726531982422, "eval/task02c/fd2/location/gt_to_candidate_mm/mean": 1.3348151369330101, "eval/task02c/fd2/location/gt_to_candidate_mm/p50": 0.6058913469314575, "eval/task02c/fd2/location/gt_to_candidate_mm/p95": 5.377278804779053, "eval/task02c/fd2/location/gt_to_candidate_mm/p99": 19.23290779113766, "eval/task02c/fd2/location/gt_to_candidate_px/count": 35869, "eval/task02c/fd2/location/gt_to_candidate_px/max": 21.226627349853516, "eval/task02c/fd2/location/gt_to_candidate_px/mean": 0.34337398781515643, "eval/task02c/fd2/location/gt_to_candidate_px/p50": 0.0, "eval/task02c/fd2/location/gt_to_candidate_px/p95": 1.0, "eval/task02c/fd2/location/gt_to_candidate_px/p99": 5.575839862823482, "eval/task02c/fd2/matched_candidates": 55403, "eval/task02c/fd2/one_to_one": 32309, "eval/task02c/fd2/one_to_one_f1": 0.451350180908875, "eval/task02c/fd2/one_to_one_precision": 0.30111745901562953, "eval/task02c/fd2/one_to_one_recall": 0.9007499512113524, "eval/task02c/fd2/precision": 0.5163518085314595, "eval/task02c/fd2/recall": 0.9107864729989684, "eval/task02c/fd2/references": 35869, "eval/task02c/pca5/candidates": 101948, "eval/task02c/pca5/candidates_without_visible_reference": 8765, "eval/task02c/pca5/covered_references": 32914, "eval/task02c/pca5/location/candidate_to_gt_mm/count": 93183, "eval/task02c/pca5/location/candidate_to_gt_mm/max": 32413.748046875, "eval/task02c/pca5/location/candidate_to_gt_mm/mean": 51.160016543761756, "eval/task02c/pca5/location/candidate_to_gt_mm/p50": 1.8678584098815918, "eval/task02c/pca5/location/candidate_to_gt_mm/p95": 176.88874969482399, "eval/task02c/pca5/location/candidate_to_gt_mm/p99": 316.47114379882584, "eval/task02c/pca5/location/candidate_to_gt_px/count": 93183, "eval/task02c/pca5/location/candidate_to_gt_px/max": 83.0227279663086, "eval/task02c/pca5/location/candidate_to_gt_px/mean": 12.828508875005602, "eval/task02c/pca5/location/candidate_to_gt_px/p50": 1.4142135381698608, "eval/task02c/pca5/location/candidate_to_gt_px/p95": 51.6669807434082, "eval/task02c/pca5/location/candidate_to_gt_px/p99": 71.3871078491211, "eval/task02c/pca5/location/gt_to_candidate_mm/count": 35869, "eval/task02c/pca5/location/gt_to_candidate_mm/max": 58.51726531982422, "eval/task02c/pca5/location/gt_to_candidate_mm/mean": 1.3334002162951497, "eval/task02c/pca5/location/gt_to_candidate_mm/p50": 0.6301916241645813, "eval/task02c/pca5/location/gt_to_candidate_mm/p95": 5.04065465927124, "eval/task02c/pca5/location/gt_to_candidate_mm/p99": 16.78830337524414, "eval/task02c/pca5/location/gt_to_candidate_px/count": 35869, "eval/task02c/pca5/location/gt_to_candidate_px/max": 21.226627349853516, "eval/task02c/pca5/location/gt_to_candidate_px/mean": 0.3758880839889767, "eval/task02c/pca5/location/gt_to_candidate_px/p50": 0.0, "eval/task02c/pca5/location/gt_to_candidate_px/p95": 1.0, "eval/task02c/pca5/location/gt_to_candidate_px/p99": 5.058544254302962, "eval/task02c/pca5/matched_candidates": 49975, "eval/task02c/pca5/one_to_one": 32584, "eval/task02c/pca5/one_to_one_f1": 0.4728589361254417, "eval/task02c/pca5/one_to_one_precision": 0.31961392082238005, "eval/task02c/pca5/one_to_one_recall": 0.9084167386880035, "eval/task02c/pca5/precision": 0.4902008867265665, "eval/task02c/pca5/recall": 0.917616883659985, "eval/task02c/pca5/references": 35869 }, "run_id": "b622e76deceb419ab9c5aa80a8f8280c", "step": null }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254{ "angle_thresholds_deg": [ 2, 5, 10, 15, 20, 25, 30, 40, 60, 90, 180 ], "backends": { "cpu_numpy": true, "cuda": false, "pcl": false, "simulator": false, "tracker": false }, "dirty_at_evaluation": true, "evaluated_frames": 121, "final_production_default_changed": false, "full_raster_union_assertions": 7986, "git_commit_at_completion": "b1ebe0e798eb5ce45001eba6d4cb0e5f733d0d4e", "git_commit_at_evaluation": "366e9ce4b1510926449fc7c51765ac72849b16c4", "git_commit_at_start": "42e30e4c2d9904e0e16453998a2da5e7c9344494", "missing_document_links": [], "new_code_and_doc": [ { "lines": 126, "path": "visual/runtime/test/structural_edges.py", "sha256": "5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80" }, { "lines": 411, "path": "visual/runtime/test/run_structural_edges.py", "sha256": "eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe" }, { "lines": 150, "path": "visual/runtime/test/test_structural_edges.py", "sha256": "c270dc3def473fb7730801a73cf2e6eb6cd7287e7883b839b2e18969d33ccf0e" }, { "lines": 360, "path": "docs/visual-graph-integration/02c_structural_edges.md", "sha256": "51636409d76284041db14a047c1660b57d58bb695931d2b54b99f1542b31a2b8" } ], "pair_files": 121, "pair_sources": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120 ], "preservation": { "checked": 368, "runtime_interface_and_prior_experiment_content_preserved": true, "separate_changes": [ { "attribution": "Separate Task02-B publication notice, 5 lines; no Task02-C edit", "before_sha256": "b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c", "current_matches_commit": "366e9ce", "current_sha256": "e2cf4712363640807bba263143ea7cf324c749ee5268143c45e22f299d58075a", "old_content_preserved": "baseline_document_before_task02c.md", "path": "docs/visual-graph-integration/02b_normal_comparison.md" }, { "attribution": "Finder metadata, not experiment content", "before_sha256": "05b1614ea7fccd3fe5a78f0aa2094ac1932cb96884381e57edc2f5b09b15dbd2", "current_sha256": "22e0f0387ee68eef7dacb4f95b522ad214873b7f338496abab5cf131b7dbcf7c", "path": "visual/results/normal_comparison/.DS_Store" } ], "unchanged": 366 }, "remote_publishing": false, "run_id": "b622e76deceb419ab9c5aa80a8f8280c", "sampling_implemented": false, "source_checks": { "visual/runtime/geometry.py": { "current_matches": true, "snapshot_matches": true }, "visual/runtime/test/normal_diagnostics.py": { "current_matches": true, "snapshot_matches": true }, "visual/runtime/test/normal_estimators.py": { "current_matches": true, "snapshot_matches": true }, "visual/runtime/test/run_normal_comparison.py": { "current_matches": true, "snapshot_matches": true }, "visual/runtime/test/run_structural_edges.py": { "current_matches": true, "snapshot_matches": true }, "visual/runtime/test/structural_edges.py": { "current_matches": true, "snapshot_matches": true } }, "tests": [ { "command": ".venv/bin/python -m unittest visual.runtime.test.test_structural_edges -v", "passed": 11, "run": 11 }, { "command": ".venv/bin/python -m unittest discover -s visual/runtime/test -p test_*.py -q", "passed": 74, "run": 77, "skip_reason": "CUDA unavailable", "skipped": 3 }, { "command": ".venv/bin/python -m unittest tests.test_experiment_logger tests.test_experiment_artifacts -v", "passed": 42, "rerun": "outside sandbox, approved; all 42 passed", "run": 42, "sandbox_attempt": { "failed": 1, "passed": 41, "reason": "ServicePollForTokenError", "test": "test_real_offline_sdk" } } ], "tracked_diff": "", "whitespace_errors": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374{ "git_commit": "42e30e4c2d9904e0e16453998a2da5e7c9344494", "git_status_before": "?? docs/visual-graph-integration/02b_normal_comparison.md\n?? docs/visual-graph-integration/pca5_optimization.md\n?? visual/results/normal_comparison/\n?? visual/results/pca_optimization/\n?? visual/runtime/test/benchmark_pca_cuda.py\n?? visual/runtime/test/benchmark_pca_streaming.py\n?? visual/runtime/test/normal_estimators.py\n?? visual/runtime/test/pca_optimized.py\n?? visual/runtime/test/pca_torch.py\n?? visual/runtime/test/pca_triton.py\n?? visual/runtime/test/run_normal_comparison.py\n?? visual/runtime/test/run_pca_optimization.py\n?? visual/runtime/test/test_normal_comparison.py\n?? visual/runtime/test/test_pca_optimized.py\n", "sha256": { "docs/visual-graph-integration/00_interface.md": "d71474fe63d2717c8bdc2fe35e8ae120911479402d3fa3238a9d1fb6b8817ea2", "docs/visual-graph-integration/00_search.md": "38b3c8573f9f236f8f537a2006adbde8a950763e26520cd3ddb5cecc9c2cf153", "docs/visual-graph-integration/00_ultimate_goal.md": "3a169a20dcd306c857a4e860c94973b020501c65d5153e248288a74f9c415351", "docs/visual-graph-integration/00_ultimate_goal_2.md": "06df12101b4bf1afdd297f06828299e38c01350fe104a60d5e384b240f1cfb0e", "docs/visual-graph-integration/01_organized_geometry.md": "3e64e2bc7f2d3ea796564cdf96502b1bba016a99749d6b3330a1693754efe51f", "docs/visual-graph-integration/02a_normal_reliability.md": "09e75fec4d264112d94ef37535594edfada7b49ee7bf72425cc4dcea6d171789", "docs/visual-graph-integration/02b_normal_comparison.md": "b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c", "docs/visual-graph-integration/pca5_optimization.md": "53e774317ff2f34427a628dc3af74f5cd029155081069734f00cb18cdb13b9fe", "visual/data/step2/ep000.npz": "22ad72d776057da9ed5f85014cba47b4603e421623f29763c88edb159a5087ba", "visual/results/normal_comparison/.DS_Store": "05b1614ea7fccd3fe5a78f0aa2094ac1932cb96884381e57edc2f5b09b15dbd2", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/comparison.html": "d970fa8afc8e4b513e66a6de5e378f8d8124efdc76e10d94e45572389c939601", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/comparison.html.tracking.json": "4aaf5fa675377151f5532bd468dc4d473e3ab5a5bbadb19daabaccdfda28bc63", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/comparison.json": "dcf0ccea29b10f70344e352eddb8b48bab348cf43996223ad874fe5b43412511", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/comparison.json.tracking.json": "745673488a4acec23efa0e74bbfd0d56658ef94153c8f36b6edea470397e3f22", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/episode_inventory.json": "70ba661e9cc97f58b6d12bbf65c9d35e91aae8f99406e5c4e0dae5fbc3c085f7", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/evaluated_source/normal_diagnostics.py": "d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/evaluated_source/normal_estimators.py": "e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/evaluated_source/run_normal_comparison.py": "fa34e71ec34d527856d75fa12755923a7fc4a161d6db8e155c54bb3dde12e8ff", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000.npz": "801799c9ef1fefb464e0d24b244ab37ca341ea4715a214448406aa7aaf3217d2", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000.npz.tracking.json": "9f0bff5cbd7829d7b72c7481efdeb3395c207d0eae241e179013c1aeb55440f4", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_comparison.png": "b3ff85b9285f8dab3ec10d03e0fb6782295870b9a50ec8ad38d63a33304b96ea", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_comparison.png.tracking.json": "3fc56ee50011f0d6b8cd6170517150db3fc6fb8c3f4fc337aa0755eddd4b2a73", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_profile.png": "954462e9464d23198c40e11f9da1e1aacacc6793bf6f0bdbf506b5bfdc23841c", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_profile.png.tracking.json": "85b0e749c1edca1bd7c49189e8379e5529b9b07e7875587593d73c08b48dd039", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_validity.png": "ce8d86bebd9a5602cc322f757a9249d7d12c5a40c03bcedc2d98f4566a3e4adb", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_validity.png.tracking.json": "dbc52c85eaca0457c3ff849eb6e60d0ebba40b0d56b29e0bbf091a6c70ab1408", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015.npz": "8164998f8bd602da1f12023d8129a155bc36ea8b842d8f42ddf2a822e870150f", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015.npz.tracking.json": "7f14d4ebfd4093c89cc7f73beab78511c071a3b654e9bfbf7b24e80e1b6a79c6", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015_comparison.png": "2a334e237efbd5bb589906b8da632dad0391371546edcecda534cf002875ce9e", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015_comparison.png.tracking.json": "8c5e0c647e6ce0e09ae4f4f48cb5ebc8a2c1f104ce910b39e4eee59915906300", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015_profile.png": "2ced417b4c332a9f35767930f70f6f80135f080fb0dd33dde7b4cde1c2df97e3", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015_profile.png.tracking.json": "92469ff7f665cef8e23960b3bc717d19f43ca0d902f8523572ed53e0b6f54f6c", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015_validity.png": "1b0ebdaca197a6bd9801cea49383967900c9645b56d4c9e76e1979a858ecc190", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0015_validity.png.tracking.json": "65fcf1dddb0a9b9eb8ab97fc1c0eaf99eee54d418e8414bb92a1f64e16447b5e", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045.npz": "c0373c69c4004c3db976fc89120020ac50ead961bf718e1f4454966cdd11008b", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045.npz.tracking.json": "bd2a7931e8ff48257dca7899588295d6f21421ce47bd1219a78faa4b76bb5a3e", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045_comparison.png": "b763a80dc1f56bd5bc61b961c9776115447713e4c028c401c67ed1f5574bba28", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045_comparison.png.tracking.json": "f544dc17a6d94d1cf70e4574cebe7dcea447020ad172fd639e693d0e6bea1791", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045_profile.png": "bc5a3abff80da2fd46166dbd6b6708f26b181e0c86b224c236d58834d63cde0a", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045_profile.png.tracking.json": "96807a80d2938cde537a4153a487cbb5744305f6ba96faf794db5de453a36bec", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045_validity.png": "b4a5cee386aad0d80bccc1897b2f77f60f8ab96b959afb049fce5fde1b594daa", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0045_validity.png.tracking.json": "923d48c58090487ab43c330026e80df7b704fa4de82c4eb89a0b25a5ac7deb56", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080.npz": "8e04471eae02b1fe6472e47d72dd6f71a238cc5772a38f6d4482fa265e2e159a", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080.npz.tracking.json": "097ef792a4b64ef8633bf8d7f21f5d6935a6ad1c69328c6478183e71e712a059", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080_comparison.png": "47fa8e6df27fc1b83246a02624133571c037846e55bd6669a305e082fec63a30", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080_comparison.png.tracking.json": "1f9dd201e0e174f396bc5c4572507244adb16a83350d037868abfd0756fec07b", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080_profile.png": "a3ba56e3e8600daf11abf60780774df1a59da1d2cbdee89d2cf113867c0e6d9b", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080_profile.png.tracking.json": "fe5600458eccffab044cf1cca62aeba818eaa1216e7c1ff0bf66a99a12e223ae", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080_validity.png": "6b743e689dccc130abb9052a6258d15748ae70919c372b4c846707a5b05f5c35", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0080_validity.png.tracking.json": "d27606bb3c89b87ff62ab61f7e1cc5c6611812b93c80ad1721e4eb7db401792e", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120.npz": "a271c7155b465e35fa07592b4e2043598b731e5fb10656578cd5eedb011e8ace", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120.npz.tracking.json": "ee3bbe7b923bc8564dda856fca241e1a614b1593590d36076000d31445525222", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_comparison.png": "6ef4ede0d3623164645f91f5bf1be8f34f0f8b9ae335b04cf4863337cd1294cf", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_comparison.png.tracking.json": "5ec1408f398e0855dd59c22c29c4eac8abd6379d5724085e4a2fa015aa57fbbb", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_profile.png": "4fb2b00935ecf1df878694f5dd33dc64c4ba5eaa3ded3aed83f64ad5f3c84a98", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_profile.png.tracking.json": "033940772742170df288a20e06eaca08871c0c589693234c6b45647bab513e30", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_validity.png": "3e21a6ae53645670adc0e28446db0ecc3606209dc18d5a419a6b1ed529271823", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_validity.png.tracking.json": "7e185b2587a32569f23a4d25d273d710a32ff7788b8478dc12b34cb932745baf", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/implementation.patch": "ed05e4cb62ac8621ada081a199b6aea99a7fa63d4d236bdad2ead691796bc358", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/preservation_before.json": "05301ee41e546531ec4685d44dae406ec5d1978c950b1789e3ad96c0940dbd07", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/synthetic.png": "954e63fe76e85eec696ad2175eff421c9ae8a74e6ea34d0fd4963a94f0e085cc", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/synthetic.png.tracking.json": "4d14526169a467ae1b86bce514ee50911e5a3bfe22867ec74dea88854e8aee4d", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/tradeoffs.png": "ef3ea0a38098bcf84ec3f9f95731e7cb83beb71893062ad45f9bef28149722bf", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/tradeoffs.png.tracking.json": "158f9ef5762367493be278565e4edbdc821d7bbb8fe09fbcf153fa604fc91311", "visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/verification.json": "6766f30bcd097d4d766a70c1b77d0d4bc10d155d8cbce8f422694b0cae37e539", "visual/results/normal_diagnostics/.DS_Store": "09b8ef384eaec35730d95dd41ff0a1e02f9c2ea23afedd3c809b8702425127ad", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/diagnostics.html": "2bd3113ef388079a4bcae4b0b584624eca2c05799f717ab3cc142846de6e9717", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/diagnostics.html.tracking.json": "bced4d7c2df44e1a89e7115ffa14d6aded840ed11c55e0e5fb66bf319e15e0c6", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/diagnostics.json": "183bb345af3ade5cb2a4841eccbd9f13ebe79dc3360019cbb731fef33173a818", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/diagnostics.json.tracking.json": "93f2d201216bd282c9b2e5612687d6d8a36703fe86544d5a500bb8009cf16735", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/distributions.png": "39bf01ff36e172158eeb4ff920f9e22fe306e40f17ed22f4a4c8432f387ccebe", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/distributions.png.tracking.json": "1d2536f66414b9f5bf0c8ed6d450ea94e83275be6971ff933624cda8d5d0a8d8", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0000.npz": "e9978283ab052fa0fadc9b98ee907d509275557a6c8809e4b0462df9188d73f8", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0000.npz.tracking.json": "79850017f321e4e7c2df2b7ccfb93e737ff03bba9a22c3dd3ac752819b05521f", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0000.png": "541c7d986c0aa958cb08d85d1b3d4dfdd561e5150d8cff0cb1cf730d626902a3", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0000.png.tracking.json": "d09c1be1134720ba394ef8551f8bb12e8e0a37ce2b9fc7f8ae04508254487632", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0000_profile.png": "4d2ac572d7ecf2d2c6e21e158d83ea7e77072d4277ea24929097205acf348f5c", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0000_profile.png.tracking.json": "c70cd0b8b0e2ff904a2ad0eef4ed79f594f9ca127f0d1b2046bbae7e9d63242d", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0015.npz": "cca41a436e0a106aa6c0c514e5cc31965cd22548b5b1643527aaa41b60d8f1c0", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0015.npz.tracking.json": "f8200173cef2d2dca132766bde94254729a6222bad4efeffc44e377c269a0935", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0015.png": "07be4d67cb639cf2e862cbc2d1da8c5a2c545ac8a4f564df076a90452781ec8d", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0015.png.tracking.json": "f736bc6b679dc9cacb8d5954dc32d306e82482ba448e68d60533d9005dbbe2d1", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0015_profile.png": "24cd57b1c3b4bc0fadefee9e3835068330b1e2b61c8b635ffeb2dafba5031056", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0015_profile.png.tracking.json": "7cc93d18cca988d6499096a36609ad7869cf3c6ba3949eb4d4ce5ff5fd6e24d9", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0045.npz": "b5bca5fe8335b1c3ba6e9caf6d9ad483c03443f1b37eba61b8d282d57cc3865e", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0045.npz.tracking.json": "0ea27cb819571f8b598f20762ac1508df4acf319ef40b9af670edc8d0c6c78b2", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0045.png": "a4a30aad3510d839558a9a01a3ba55e5f6a10fabd5953b7cc78f3ff13cf64755", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0045.png.tracking.json": "a62e7cb3a068d778f1471c16379cfe58dc70539ef128518cd856848d1de9eb78", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0045_profile.png": "bcde5d3451b421d6c6c2984e17e9f74b174e1b3a5b8ec79661c4ccb8bcdb5005", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0045_profile.png.tracking.json": "3acb5ad23a71413702e227b27b2fafafd39e7cda216b18a065f1163650b6d2be", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0080.npz": "3172775d9006196b643963fee19b2320481de7c7361ed11a5364044c866749c0", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0080.npz.tracking.json": "2d0d27fd6aebd2d9404c3c2551155b2c4d3204f2210d1b8fb55333a20a673b27", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0080.png": "9dcd960e4995c3d6d2fbe2c9c0cc2be7dad7cd1f765a3d535d5a6a338839e018", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0080.png.tracking.json": "27f0c2a9c029a757623b43baf33b7612883189c7b0a4be2b466bd5d17a767828", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0080_profile.png": "f8ce536d7e514f24f1a083c208b2a339d16d364dea73ab90e84cefc309f1165e", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0080_profile.png.tracking.json": "ff423deba9e5aee3be8be14748e084aa4b7859860cb6778efa0a0be504296132", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0120.npz": "d67f4447b68ec12635eea28bb0ed6f4b5ae50f69902c58063f7ef437fb27bbc2", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0120.npz.tracking.json": "6f44ec858ac65ec9dcab9bf405cb6bb6a41c9a38f7de88e75467739bbd18205a", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0120.png": "cf4802956df0a9da98c5540641fc7c98d76d477f8d8fbf27a47e5bc84dbc6462", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0120.png.tracking.json": "69bbd5d2d9ca414713bda1d30bb57f423ab0987246f2fcf120928adcc19780ba", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0120_profile.png": "d9fe83f67ef2a6b11aba891a124213cc255763a27238c069a9c187cc6b0c7fc3", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/f0120_profile.png.tracking.json": "3cb6d73f64e461e4d96c6163e689a627df3eba56474829c9afc5b534d13c88fe", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/scale_probe.png": "e8ad350d220437fa4ca089af4dab90ed49e0b30886ff0a32a88d16564d45ab06", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/scale_probe.png.tracking.json": "0b6ff405ddc9467075dde94305977990aadc8537ea768450263e2055408b8586", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/synthetic.png": "1e98275e6ec307957d18e3315ed4b6ba7ada6712ceae3b086bdff8895ec3a539", "visual/results/normal_diagnostics/202928e0c70146c6aaa3d7fd10d4fee5/synthetic.png.tracking.json": "304d84972608894a6169732cc8e3d6cad6d8e7ce93a95f40cc15f840a579b28d", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/diagnostics.html": "3ce52d5be838ed2c3c9b574953aea457c6096a07f81e18b38508e12f956cc812", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/diagnostics.html.tracking.json": "48801d7ad293bb62b7691fe12f76c574651e90ae2f82cea169a0a07ef6a01ec0", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/diagnostics.json": "479b5708e1c88ec1e8642692ebb22bac949f91adca210039ed70072db200edc8", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/diagnostics.json.tracking.json": "f9e9f045bb3e17fe2fc6482f410e7b19c2e6ed654c184f57596368aebf793adf", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/distributions.png": "39bf01ff36e172158eeb4ff920f9e22fe306e40f17ed22f4a4c8432f387ccebe", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/distributions.png.tracking.json": "c41924a94c6114a57e7bbca1d6b308ccc177baa460fc27e3a4aa440304093ba1", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000.npz": "e9978283ab052fa0fadc9b98ee907d509275557a6c8809e4b0462df9188d73f8", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000.npz.tracking.json": "ede1ecb7c222a0c077865fa4b231c180c0d119fd670bdf0aa476f46df90f796f", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000.png": "c8d7b5fa18bb1bfb3432de8373a972b84014c569cb989e20d70fc3a8230d21ba", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000.png.tracking.json": "b52f3680243d2af4eccb153720fcdb680ae0979d1e9963a72b161eb29ba22255", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000_boundaries.png": "136e8cd17b32162e995f5de6728e044112b39802f6ad71a205ce55947da7029e", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000_boundaries.png.tracking.json": "342e079f219ff75729fda5ac099f1c25c10a860e87e0d6375a960f3afcc484f9", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000_profile.png": "4d2ac572d7ecf2d2c6e21e158d83ea7e77072d4277ea24929097205acf348f5c", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0000_profile.png.tracking.json": "3226f8f4d0b9aa30ed9a58855384de2f548f999f76c2ba4c3c341dfd0feb9d19", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015.npz": "cca41a436e0a106aa6c0c514e5cc31965cd22548b5b1643527aaa41b60d8f1c0", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015.npz.tracking.json": "74d8fdcdf19f27fdd28f450c79f1865d88f814f1606b5006c499a50f194df824", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015.png": "44fcc53db7b261622835ae659c126a57667a48e7a879742be53d684811d98300", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015.png.tracking.json": "8afe85aa0064589621f1d928dc4b340743d6a4fae0defcb2e0607057a4d35a7d", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015_boundaries.png": "c82fe3e9d2baa5d63352b7a14393260c76f2aecdab4263263dfa756df6bf2e5e", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015_boundaries.png.tracking.json": "3c429173fb2a00c9205dbd1717661a01a506f1a9cd343f8e21749055f37b2935", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015_profile.png": "24cd57b1c3b4bc0fadefee9e3835068330b1e2b61c8b635ffeb2dafba5031056", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0015_profile.png.tracking.json": "4a3ca1ce9ed95d129dfd28bc776f3db877e183cfeb891b8f19dba09a0d4595f1", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045.npz": "b5bca5fe8335b1c3ba6e9caf6d9ad483c03443f1b37eba61b8d282d57cc3865e", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045.npz.tracking.json": "5114d48c340c4ffb093eeef72a0431e8c0cf315199e02fdf75d8ca700f8a9091", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045.png": "09e2dbf7a7a31934a194af39700dfb976dc9603e711f24fcf2c4c31e0b6c460b", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045.png.tracking.json": "53268a1e2c20b8974e6292a2742e0772309e3d961bbdf2f1f71cf43e7cc9dc2a", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045_boundaries.png": "5617510c7fd3d5548050130eea00890e1ccb335f2c636332d8c40b8d7dab3434", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045_boundaries.png.tracking.json": "f26f557c750093f567006212a83fbf47c5d34215f9329e1da79b4739f49cadb4", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045_profile.png": "bcde5d3451b421d6c6c2984e17e9f74b174e1b3a5b8ec79661c4ccb8bcdb5005", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0045_profile.png.tracking.json": "4df9df0f4b3011df0161075992f07f9dbee848be7695fa92449e085b799c19c4", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080.npz": "3172775d9006196b643963fee19b2320481de7c7361ed11a5364044c866749c0", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080.npz.tracking.json": "34e99a96024f6d737c0e7bdb0ec414e8ebe9b0f09aa13de8845a17fab0422d19", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080.png": "f5f5a02cb5ea4ac36b6a551fc3f05711c5e66229618fa83fb1be6da5cc8eb5f7", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080.png.tracking.json": "06ce86a05c7fe0bbf3cf409628d29cbf6b2c988d7d27d16becaf0d8e07d286de", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080_boundaries.png": "5c43c60aeeca58031baec894489270865a16aac2d4df34375f33a7a4c488ace6", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080_boundaries.png.tracking.json": "d1a1e9855a0c21a1dd61e6e8826787a60b9204775fd2745d23d512f2471b7a67", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080_profile.png": "f8ce536d7e514f24f1a083c208b2a339d16d364dea73ab90e84cefc309f1165e", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0080_profile.png.tracking.json": "411f3661c18ba0cd5f662ebd6179216dc3db1978066834c74a4a0c5a267b9053", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120.npz": "d67f4447b68ec12635eea28bb0ed6f4b5ae50f69902c58063f7ef437fb27bbc2", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120.npz.tracking.json": "0030d665d3f5142c9f67e1ebde33d6239fa8ccb155f4bf6eabc8647ab9409007", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120.png": "fc441049bcd6497f2e4d31b821d956fe03288422a588cd162373e18b79a5f96e", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120.png.tracking.json": "0ae870f3f08bbecfc894810ed793a7374e00f711a9ac1ce03921b75c1bda79bc", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120_boundaries.png": "c1090fd1611ae153227ee9b953f916f4c0df5b78f7908eab40335ec107ed51ea", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120_boundaries.png.tracking.json": "f18e25faa9b561931409377ee4bbfe00c7d3cebaefcf27a00cff9732cf98ef4d", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120_profile.png": "d9fe83f67ef2a6b11aba891a124213cc255763a27238c069a9c187cc6b0c7fc3", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/f0120_profile.png.tracking.json": "310e92a5388f7ec1e0a44b84802b95d57e8c7edcf4d0f6ee507616a2b8a35288", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/scale_probe.png": "e8ad350d220437fa4ca089af4dab90ed49e0b30886ff0a32a88d16564d45ab06", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/scale_probe.png.tracking.json": "42b7524f3707d9d269a5e4451570b3570b23c17f87bd5c6894e9608f65dc5938", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/synthetic.png": "1e98275e6ec307957d18e3315ed4b6ba7ada6712ceae3b086bdff8895ec3a539", "visual/results/normal_diagnostics/30ad334f3a094b91b54cdf89ac276b45/synthetic.png.tracking.json": "f637bcd2055de4e312b384cfe8205c3b3238dba083acd193d971e7ad0cd954cc", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/diagnostics.html": "39358e9be02fd2291855169b7d5064266c4c339ec63a24a8332aa94b621484f4", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/diagnostics.html.tracking.json": "23b33b1afe050b8712fdfe70783b24459515a2ba2c082c8be956b794d00025f7", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/diagnostics.json": "d9c738ecd9e2417255c9822d0e1165d2bebf9409a3b154bedf730aec439dea99", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/diagnostics.json.tracking.json": "397868565c09b29d98ee989155eaa47ab45ff6d083600da02ebba2193e0f678c", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/distributions.png": "39bf01ff36e172158eeb4ff920f9e22fe306e40f17ed22f4a4c8432f387ccebe", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/distributions.png.tracking.json": "146e72c4553c470a6745fb5935dde0fdc61f14d5dd267bbd466eba54381f4825", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000.npz": "e9978283ab052fa0fadc9b98ee907d509275557a6c8809e4b0462df9188d73f8", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000.npz.tracking.json": "3144770d783a0b528f7a39894866118dddf8e29f2c8223d1d2cb8688d95c8033", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000.png": "c8d7b5fa18bb1bfb3432de8373a972b84014c569cb989e20d70fc3a8230d21ba", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000.png.tracking.json": "dbf006f43042f96cbccee1e33b54ce5e4fbc56c00d9fa3322d77d3bdf6a44af9", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000_boundaries.png": "136e8cd17b32162e995f5de6728e044112b39802f6ad71a205ce55947da7029e", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000_boundaries.png.tracking.json": "550d5a32c19c088fd701d30e5ab910997bed33c203031853e554866e2fd0039d", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000_profile.png": "8fabe4380f136512095a7146e2f633e507ae5bb6c833c8dfeb6dc820db916919", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0000_profile.png.tracking.json": "893f7e0d5ab0abf8a699a3d41f27a1f384949ece42c61df7893b1e1a9453243f", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015.npz": "cca41a436e0a106aa6c0c514e5cc31965cd22548b5b1643527aaa41b60d8f1c0", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015.npz.tracking.json": "96bda6c98505a1048060a69037e5eaaefd8e3ed29429dc104477fccc29192486", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015.png": "44fcc53db7b261622835ae659c126a57667a48e7a879742be53d684811d98300", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015.png.tracking.json": "0a1d50ea187c2006c68dd7924ac52e9d3767f4529d474c7ea5329d59ae3537db", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015_boundaries.png": "c82fe3e9d2baa5d63352b7a14393260c76f2aecdab4263263dfa756df6bf2e5e", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015_boundaries.png.tracking.json": "d92840c45c31aff5d4425c0a643c2351371371a7c9e213430006389a15e81711", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015_profile.png": "fa28f081cb36f77e9632e2780a5eee198346aed13a6598ea2a5a0f67d51e675e", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0015_profile.png.tracking.json": "4c569716c0786acb10990898d2cebc08e5468864d7e3947d727cf7f206d164d1", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045.npz": "b5bca5fe8335b1c3ba6e9caf6d9ad483c03443f1b37eba61b8d282d57cc3865e", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045.npz.tracking.json": "239f68b08f702861fd950bc6363658dc97bf969363a74ec3e7a759a3218ca0e0", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045.png": "09e2dbf7a7a31934a194af39700dfb976dc9603e711f24fcf2c4c31e0b6c460b", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045.png.tracking.json": "7b9fe6dd99c24870b71b0f00b7e50859cdd01282a724752677dc5cd7b413ef88", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045_boundaries.png": "5617510c7fd3d5548050130eea00890e1ccb335f2c636332d8c40b8d7dab3434", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045_boundaries.png.tracking.json": "0d0720557027ff423c71a6c5d814f8c379d410a2f760674daeae306a0a4eac94", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045_profile.png": "25390feb24e9d61963af73d7e1ad72922d8a14e156e1ce462089b4cc5f527cd3", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0045_profile.png.tracking.json": "f19aff767fa16d283257c5994a73f806b9038909fe83bf436e2ea7289b7a5e7d", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080.npz": "3172775d9006196b643963fee19b2320481de7c7361ed11a5364044c866749c0", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080.npz.tracking.json": "b67859bc9b638d2e86e9c49ac67a51ca491dfc7776242e30f12f91e99e4f92d5", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080.png": "f5f5a02cb5ea4ac36b6a551fc3f05711c5e66229618fa83fb1be6da5cc8eb5f7", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080.png.tracking.json": "1c064d0c82810e555249e91e404198910d7a599d6c79aa08c227e54f6d8769a4", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080_boundaries.png": "5c43c60aeeca58031baec894489270865a16aac2d4df34375f33a7a4c488ace6", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080_boundaries.png.tracking.json": "15ea9464cf8b8cf82a494be4efaf53ff5571ff728dcbb40dd034691c67c0c25d", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080_profile.png": "1245bb0254860496971466d835adc91e355466b441dc6009f3fa705e90005df6", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0080_profile.png.tracking.json": "68bdd553390e42d71ef293b4c652afba6a53e0aa25e62c7f27c57800ecb60d58", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120.npz": "d67f4447b68ec12635eea28bb0ed6f4b5ae50f69902c58063f7ef437fb27bbc2", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120.npz.tracking.json": "088049ea548eaf567f12a21e3f9e5ee172c57ae03c1a5bd63079f1460268d2f6", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120.png": "fc441049bcd6497f2e4d31b821d956fe03288422a588cd162373e18b79a5f96e", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120.png.tracking.json": "367a5238698ec95407b9be0a1f7e6b68d056acb6b926d8a8e6e338d9edf45382", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120_boundaries.png": "c1090fd1611ae153227ee9b953f916f4c0df5b78f7908eab40335ec107ed51ea", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120_boundaries.png.tracking.json": "ab1eccd8bb07e920ac7dcef6b083d13b36f38711ed37430d037fad0a7d7aea65", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120_profile.png": "181630dd06e7e606ea0e189f467b9edadbe2499b50fff3eb61c8ab23adf13da9", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/f0120_profile.png.tracking.json": "e22a7421b83b868162b803d74449738019b310750a1727825be4f15879953509", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/scale_probe.png": "e8ad350d220437fa4ca089af4dab90ed49e0b30886ff0a32a88d16564d45ab06", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/scale_probe.png.tracking.json": "1f8f8bd25c82bd6611ff76d2b4a34cf99e38903bd63c1810a4a9701e74734544", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/synthetic.png": "1e98275e6ec307957d18e3315ed4b6ba7ada6712ceae3b086bdff8895ec3a539", "visual/results/normal_diagnostics/3640b9bbe403409ba1429e0143e5e049/synthetic.png.tracking.json": "4fd9cb8ccadcffa8d2470e1c28a354a13b037558728a4aa7e94d44a34e55bde0", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0000.png": "662109d76a6e1283a96c366d42db874feb4438756e2d4d22db810e9df99dec9e", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0000.png.tracking.json": "960bf8a1b12821108ec864cf5295053dd06c453e6423608048bdad586d045f9b", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0015.png": "fa11fd32bfdf0d36e8544474319cb8464f9744a491b1f672f65a1f019bbe6196", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0015.png.tracking.json": "8a44d5d799a115f55750a50345f4710d72a513a3ee3b8b193ee43913139d28da", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0045.png": "8c67c8eb534ff61982a88c65bb42b0a0dfbf73141f44e56fc1a26d16968e6a36", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0045.png.tracking.json": "c5d87cb98f8a1f84a9ff6b4c344145db892143cc7fbbecb2709ce7a0563a0dd2", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0080.png": "00ad8e2a2f9955851cc9e5686163180c56990586f6cb85624c6c87093e757d8f", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0080.png.tracking.json": "d28f2d1dc1087bf85e946cbf2f180ef85b841b40c9b90867efd2f3b32bad5127", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0120.png": "47135135eae463529b49f8995bc8db8c0123f94a34bc766227c8a1ff84b63cf4", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/f0120.png.tracking.json": "0559f7af76c7eed955b0a4d176dd45469daebce298f3eb6af937a3b56eec8534", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/implementation.patch": "91cca865fdaf9d1f03f4654e7314638b700126f6956fd564bf0c4d07b3612fd0", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/implementation.patch.tracking.json": "509fb58aa9c5a0b666ec2f878730c7fcb8c8c01e497c31cadfb66fef8bf8fe2d", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/optimization.html": "8394b6dbe3afc51731cd6168ad39cf6f54f9bc51ed09b473d20098d3e3dc6498", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/optimization.html.tracking.json": "9d3ee7fe8dd7e7ee06daf12105d0bff82d9fc686a5ecac5a0845bc0dd167e5a9", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/optimization.json": "5bf6452448e8e729235538a68412bc78052c40de11c784479d60fe5226de2015", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/optimization.json.tracking.json": "1f3fb1171a1118fa0176a9de355962862a0976d536b90e46d78f6ca9ca640212", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/performance.html": "c55829bd0cfa1f58bff26c01413888c265275a86e7a8b4d1920ffdcec5766357", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/performance.html.tracking.json": "90535e0165746496baaf6a7617613dd0d3907941bf7535165bce4c3e912581bc", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/performance.png": "3f50a7c813a78ca229a05e33b20af5c0bdd4405fb9140e92b427e5c4f32ff639", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/performance.png.tracking.json": "6fd1029ad708a0e3e39bd9cfa9c3f32bd756c1ac4fcaac6148e152aadf543cfb", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/preservation_before.json": "185149700356d2742b80992b1e69b29843ca8c002591e5f8746e8171e34d22da", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/preservation_before.json.tracking.json": "4a53ea4342f103e1891e33286a00dcd12ef5171fe6d38b991979d4e07dd15a41", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/source/normal_estimators.py": "e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/source/pca_optimized.py": "ab8f2153b30a2a5f4500bfc46a374358848af068e33d8e6baf2924b72e037bf1", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/source/pca_torch.py": "ef482252fe32d9fbe638b68e5eb04ce1fbaf7787c17466d949a1afeddd2bc3f0", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/source/run_pca_optimization.py": "4353e5a59377ff8e918df564d215385feb4c8394d378e34f80b1451cbe195b0b", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/verification.json": "42e14e68b486fdf9f0cfe80951a0d07d573f31a30e1491c983dde8a4919f0c1c", "visual/results/pca_optimization/03d9777a004349e3a794147e4e55a2f0/verification.json.tracking.json": "208fa29ffd4f0c243e32dae704bf767ee6859f0341fdb98ba1ace671aae08bc9", "visual/results/pca_optimization/0d3bd2a6cc6445c489ba821bc252156d/streaming.json": "950884b69f5a0848710797d181b26fe71de43a150a97c21238172dca32a6a008", "visual/results/pca_optimization/0d3bd2a6cc6445c489ba821bc252156d/streaming.json.tracking.json": "6400467a051bcc877259ac5d8d7b52fe450024a8b9e56d19cf4e8bbe7931247b", "visual/results/pca_optimization/0d3bd2a6cc6445c489ba821bc252156d/tracked_masks.npz": "7244315f5b01cf91249c19fc9c0b7f1dfead384abb8a608eda61492f9f358b21", "visual/results/pca_optimization/0d3bd2a6cc6445c489ba821bc252156d/tracked_masks.npz.tracking.json": "19f869721bb69b4cfb8096a70736352251e2cf5173513fb95864b661ca02d777", "visual/results/pca_optimization/39d1f12d47544671a7fb9d9621be484c/streaming.json": "d4c508a106a30568f537f6afaea256ad02b17b653f29a609040d896b186017c5", "visual/results/pca_optimization/39d1f12d47544671a7fb9d9621be484c/streaming.json.tracking.json": "7389fb44bba7de9526f484fc2df05ad2f998915319990e264ff6b4cbad684cce", "visual/results/pca_optimization/39d1f12d47544671a7fb9d9621be484c/tracked_masks.npz": "b5abc00726c15412b07b1fb3841938f3bcad10e74762674efd293d2db85d6cf2", "visual/results/pca_optimization/39d1f12d47544671a7fb9d9621be484c/tracked_masks.npz.tracking.json": "023f59990ab59536aec57cb555bb93040ce7dc011e8d48755e8caee3db83d1bf", "visual/results/pca_optimization/4236d33efb5b453895dbf9048467acca/profile.txt": "a0a645f0e9999b49080fe6aa8e11456e2c054d8a6f97c23656448409ebc13107", "visual/results/pca_optimization/4236d33efb5b453895dbf9048467acca/profile.txt.tracking.json": "1d121dbb12c527effd1bbd1d0d37a883e5d07e8ba6a71570a677c0e9435996c2", "visual/results/pca_optimization/4236d33efb5b453895dbf9048467acca/reference.pstats": "c6d3694b210c27c8951a3444564d6576fdb381e2f96f3e5d89085403574dd3d2", "visual/results/pca_optimization/4236d33efb5b453895dbf9048467acca/reference.pstats.tracking.json": "c0c54c0eefda680eb3a01f68bd950ab65dd06b17bcba9bfcb976aeb87c369933", "visual/results/pca_optimization/70a194604bd04ef1b975df5d90ade61d/compile_quality.json": "a59299c747f9ea62e625710a8f78863b173bddccc91e710d7a2d561833160821", "visual/results/pca_optimization/70a194604bd04ef1b975df5d90ade61d/compile_quality.json.tracking.json": "128131ecf1466dac263c8a5e102b79490f39af83870b2928a984f40e19a1294c", "visual/results/pca_optimization/70a194604bd04ef1b975df5d90ade61d/source.py": "593da03bff504a4d3315b574e855445811d9af07db46196aca9ab516b60f9ad3", "visual/results/pca_optimization/70a194604bd04ef1b975df5d90ade61d/source.py.tracking.json": "165a83646676ef73f6fe76b02321a02dc2f58412238c8925fa7e12de6f0d111c", "visual/results/pca_optimization/9de26edb2e774ffcbed16d00eb89439e/streaming.json": "d92d1b858474d9d824e045a0128348909f4bc9a2b69d1634a0e71a26bfaa4fae", "visual/results/pca_optimization/9de26edb2e774ffcbed16d00eb89439e/streaming.json.tracking.json": "51a93d6c2750adc869d245aa10ace85d537497959b49f66bf7dad2a4c410d01c", "visual/results/pca_optimization/9de26edb2e774ffcbed16d00eb89439e/tracked_masks.npz": "017a3faf4fc304daefc6b77c97327d4a19eb21d34746e1b3465767ac4e23081c", "visual/results/pca_optimization/9de26edb2e774ffcbed16d00eb89439e/tracked_masks.npz.tracking.json": "0d15e418a27372ce5e6787734aaa4cda4d42f115f98f9d1bc69b24662f3763af", "visual/results/pca_optimization/a34de8fa4976434e9be4356eb8db198a/streaming.json": "b785005ec7f6628a05e5a5c8d2c80f6cac61136cd7390ba5d0762023a8bac0b8", "visual/results/pca_optimization/a34de8fa4976434e9be4356eb8db198a/streaming.json.tracking.json": "82ddb2c909f892d0f60e0c4b1ef7d21e7e42c6110a360a74b72bfbeb8f355c3a", "visual/results/pca_optimization/a34de8fa4976434e9be4356eb8db198a/tracked_masks.npz": "3954ea9104cfd64b372979c421eeb7c5179c4f6574530b68e3aa9196627ffa34", "visual/results/pca_optimization/a34de8fa4976434e9be4356eb8db198a/tracked_masks.npz.tracking.json": "19bac1b7e784efa961dfd7c7192ba8f354d84ee0fcef65b991e82621bdab043f", "visual/results/pca_optimization/aa996b8c135d40b09116f5389125580f/cuda.json": "6fee98a57b8abc9d4f098fae076d4c2f4c93368c78731edab38c6f9c8d3e5c41", "visual/results/pca_optimization/aa996b8c135d40b09116f5389125580f/cuda.json.tracking.json": "658c133e9b4054633e1de0d9ad9e25d6a9c9ef88aa2ab0aec76e7d590f5866ca", "visual/results/pca_optimization/c79e64c8f37a4412a0fbaa1bb382d67f/streaming.json": "cb1392d38a03760b81f40da22ffa6c45678adae0395390256e908016eccc1736", "visual/results/pca_optimization/c79e64c8f37a4412a0fbaa1bb382d67f/streaming.json.tracking.json": "6cd47b379abb2444f5fc6af98c8a1d5e1cbaff342db9499d010b42fb3d1d2a1c", "visual/results/pca_optimization/d78e9574a02946108484e471385e5c03/streaming.json": "6d5679ad9d04deeacb0e38503a391f9b78329571775da71af71e3b3561eba754", "visual/results/pca_optimization/d78e9574a02946108484e471385e5c03/streaming.json.tracking.json": "337a7c4ad698167baf3b0f4758e82d1557ea19f2b399e278aad27854cd8d81c7", "visual/results/pca_optimization/de43c422d08b4e35ac1a361113aa6202/streaming.json": "9903c6e83691dff326917d50dd4b730c2b6b4cefc5adb5d7c8f1a474d6987020", "visual/results/pca_optimization/de43c422d08b4e35ac1a361113aa6202/streaming.json.tracking.json": "9ef1a27024150347f3299871b289e19f85f47b8903d5cb54dc9ac6392ffe4005", "visual/results/pca_optimization/de43c422d08b4e35ac1a361113aa6202/tracked_masks.npz": "3d7dcdce49869679e2e61bd70d3ad73383f54d30eb80b8ddc9b3d8377e9db095", "visual/results/pca_optimization/de43c422d08b4e35ac1a361113aa6202/tracked_masks.npz.tracking.json": "275ce04c354266cd4af0320ba9c1534ce6397bb35686dbd6b7b07cdbfb5b34aa", "visual/results/pca_optimization/eaa2d61078b841a396e63f7868a6b90c/cuda.json": "3de2e2e57fac928edd9227de141f794583a7ed2733d8b2cc9c61d93532102ce5", "visual/results/pca_optimization/eaa2d61078b841a396e63f7868a6b90c/cuda.json.tracking.json": "87804a267d897532e558b176a0c35aa2a0123f24a080ecb30e3200a99d7de075", "visual/results/pca_optimization/executed_gpu_source/benchmark_pca_cuda.py": "538223a22a793603fdb707d984167d26f00a947dc53a2d5d1eef722c3428ca75", "visual/results/pca_optimization/executed_gpu_source/benchmark_pca_streaming.py": "262db5d0cf5a5e3d58df62a7201f4ec8ba17e393eb9a58635e43aa04d3a21724", "visual/results/pca_optimization/executed_gpu_source/pca_optimized.py": "27cade44fd654ed458d5731dfb327416d884746481cacdd0e0fd59a1c47b7df5", "visual/results/pca_optimization/executed_gpu_source/pca_torch.py": "ef482252fe32d9fbe638b68e5eb04ce1fbaf7787c17466d949a1afeddd2bc3f0", "visual/results/pca_optimization/executed_gpu_source/pca_triton.py": "ac0dc64836ae6edb2105ea2a7540cce509aa7e9ea01a6c4bb45c92086525564b", "visual/results/pca_optimization/executed_gpu_source_v2/benchmark_pca_cuda.py": "538223a22a793603fdb707d984167d26f00a947dc53a2d5d1eef722c3428ca75", "visual/results/pca_optimization/executed_gpu_source_v2/benchmark_pca_streaming.py": "de4e598d931c9d5edb0c516d4477afd59d73e39e3c25ae4e6c71edbae3cd1ec8", "visual/results/pca_optimization/executed_gpu_source_v2/pca_torch.py": "ef482252fe32d9fbe638b68e5eb04ce1fbaf7787c17466d949a1afeddd2bc3f0", "visual/results/pca_optimization/executed_gpu_source_v2/pca_triton.py": "ac0dc64836ae6edb2105ea2a7540cce509aa7e9ea01a6c4bb45c92086525564b", "visual/results/pca_optimization/executed_gpu_source_v3/benchmark_pca_cuda.py": "052e300cb9b7aedc04dae3cd20c22614ebcdd2f1d0e0bae482271e325fded84a", "visual/results/pca_optimization/executed_gpu_source_v3/benchmark_pca_streaming.py": "926c934fa1afc5bd6a7d45abc9cfc3ec1b9e440deadf1a6e347c4d8cb6c497b9", "visual/results/pca_optimization/executed_gpu_source_v3/pca_torch.py": "6a27dd01efbc411d88e8bd9a595c29797ce70f4d4308cc6c88b6af543defb482", "visual/results/pca_optimization/executed_gpu_source_v3/pca_triton.py": "699100eee075ee11eb1a4b1b1e94bbd5da92d2e5733c5b99f7df462451e8e692", "visual/results/pca_optimization/executed_gpu_source_v4/benchmark_pca_cuda.py": "052e300cb9b7aedc04dae3cd20c22614ebcdd2f1d0e0bae482271e325fded84a", "visual/results/pca_optimization/executed_gpu_source_v4/benchmark_pca_streaming.py": "2ad4ddcaa33a03f7922f79312f8d959b9ad92fa2bfa2a03a718f13f866a26fcb", "visual/results/pca_optimization/executed_gpu_source_v4/pca_optimized.py": "ab8f2153b30a2a5f4500bfc46a374358848af068e33d8e6baf2924b72e037bf1", "visual/results/pca_optimization/executed_gpu_source_v4/pca_torch.py": "6a27dd01efbc411d88e8bd9a595c29797ce70f4d4308cc6c88b6af543defb482", "visual/results/pca_optimization/executed_gpu_source_v4/pca_triton.py": "699100eee075ee11eb1a4b1b1e94bbd5da92d2e5733c5b99f7df462451e8e692", "visual/results/pca_optimization/f53cd6b2edcf414ba31bb41fe114f70c/cuda.json": "9188517089de6bfe9e06f0bce502c4e5fe4c6709c99137ae694f29140b2ea35a", "visual/results/pca_optimization/f53cd6b2edcf414ba31bb41fe114f70c/cuda.json.tracking.json": "24f61104022d3b18bbfabb44fc93021a781718e1594a28c4495dc0148636a74b", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0000.png": "110c9ba5f20af572fc12c35394bd32011ed8bb6978748925eb4ada2041d0dad9", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0000.png.tracking.json": "ab9c4707b718054a399b17f6bdd013659226a97867f512b818ab1a5f8144fee7", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0015.png": "ca3b0b0d15754dc2a5206aa66f84ba675c2d704e74b0347b937f7e8626019502", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0015.png.tracking.json": "149b60b58c20ba286b01afc05532124176ae1ffcb41e9a216e6095ff75bee844", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0045.png": "1eb4d399e3a2e489088b1407cc773dc6ae109897a4b3266e589b8cbc9575db20", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0045.png.tracking.json": "237b550116d6d83ed7577d55e5d13338604f5924b240fd6538fa46a0045fa5e1", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0080.png": "16ab3f9ad9a2f5af284bd772e59da7c6aa99fcf7ab395f8649ee268aaa1fff20", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0080.png.tracking.json": "28f58b49b41d5fb894a0161bf77a1e8836c87b49d13b5466db45361209963b4d", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0120.png": "70754098519b1ce2cb9a5ff693e22efde4b8bdcb6975d4961a953c3e15d0124b", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/f0120.png.tracking.json": "904453b796fd2fae092581961483f3c0f2f1e39dcf864367d298bf9fcd6231e7", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/optimization.html": "2d86e32f9e61aa35125f3dc1d0cfc3ad71fb5a0cd4658166be828dac401572e9", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/optimization.html.tracking.json": "0128dfd44d93feb93b829fa1e5a65e0f3063f19b569966702a42f25de1bb337e", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/optimization.json": "101f3494a1f1d200fbd590144eb9dd78b38c7aaf21e9173079b6efd89ba003b2", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/optimization.json.tracking.json": "6491a9d214d805f5fe188bf5885f62948d675f4a316c8cf4b1049205cbc8a8c2", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/source/normal_estimators.py": "e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/source/pca_optimized.py": "27cade44fd654ed458d5731dfb327416d884746481cacdd0e0fd59a1c47b7df5", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/source/pca_torch.py": "3d2d0371007ffc878ffa1c17222a523e2fcd8b29fb791b53b717818b3a75b235", "visual/results/pca_optimization/fd4dff38bc534c6ebc828718a635aac9/source/run_pca_optimization.py": "4a1949ac248b82b74796a56e92f2e0bb9808593f87da199dda25bf9d3f39df4e", "visual/results/runtime_geometry/.DS_Store": "01d95e8cffd0d2e9ab4159ee2ee28e399b05b4a3a812990bc1d1c27447f8d736", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0000.npz": "62f4fe9782cc1d6cd1aa737491999255f7286b22f2a589d9a3152c440538df93", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0000.npz.tracking.json": "7fda609fe112593e06ac5829893a5d479b7d9f32d8cc6d83447e7a41a1d25d71", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0000.png": "2478f021680e6c4984ffe3eba0f8078807e2f4895609991b27216a42c524a11a", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0000.png.tracking.json": "30d9cdfbd3f32492aa0a4840e8a235cd1f844ad832a4307deed2cc95b048d3c0", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0015.npz": "3d09268e652073b1d0f9cd4ce55772d2ecf44bef733619ce4062559acacf78a2", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0015.npz.tracking.json": "de012e8c3a3d37e3270611cbde9c613780e961c002df2ab5ee650d50d9fced87", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0015.png": "861e5c55665d0114c019c19807b8c9e4817b5d659e8aab926441b9695afbf4df", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0015.png.tracking.json": "ce99632f9c261243d4d25bb556dfbb5cd82803c9d2cd163526cf61ff28f2d803", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0018.npz": "69bae6360a8949e2da7b780265bb78861e7020c21f0303fc620581a5064442f2", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0018.npz.tracking.json": "82313e74be834c31e0d2cafce51ddad6eb5f6c6c9701136e29748d6e48499f3c", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0018.png": "54655890b89010882a5f00566740e91363568fa104d3af43784c0bf4d6756b81", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0018.png.tracking.json": "94c7bdec3f3e9a1a68ab6c99119e73197590dbafbccd4f799543a56b3d52042a", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0045.npz": "cd0b2f22d817ff940818a4f285b6a659aa1182ed535ebab74da62a674de2ad9f", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0045.npz.tracking.json": "b8ce980e585a03befa8d5374c78ecba67d72bb0c66b32fa91f4e173c569424f3", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0045.png": "305fff0ca74f9aac945e4db39e1940186a882f211364163c51db9dd02b3bc99f", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0045.png.tracking.json": "f42133a9fe8882613fa9d6d5e1207ca31f4b60464a373306ea7388110ee0a59c", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0080.npz": "84051305fdacd7fbe5156ff2dbb4eae4232b6f16e6c32de459495db336274b77", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0080.npz.tracking.json": "3d8b94cc5c48e40d95e989c54400093621cdb9ec81ac234d9279d0c9de27eb79", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0080.png": "3de7cedce377c1c21677456b4e9654016aa587676bcea857e50419ac6ec43196", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0080.png.tracking.json": "33fadeef5ede611abd8253f9520a2b6cf9cdba7a329b513c18ffa1200d388ad5", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0120.npz": "c969866439077794eb0f6f09575db2b5f31c877ba16fd45178f2c1af7b515180", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0120.npz.tracking.json": "89d59d82a15779a62bfffdb039cc50ea16cd692934bc5d1eb2360c06008f486d", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0120.png": "bc7d6d17a3999d0f055f47268d75cb1f14e7989e2129f20f13002a72a06a3c03", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/f0120.png.tracking.json": "ba94f581448756ef46ed2341194897b48bb55d141dec365230525f60bb160cfd", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/geometry.html": "aee0c9f615e246c3aee60f43c9c38c4bcfa132b5937e9a19242e1c71fb6daf91", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/geometry.html.tracking.json": "71544c51bfbfe6492d7f3c2094bbcaa63a7f3488c7ee0567f1af93993310d4ad", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/geometry.json": "6d93c76efa582ecadf2acbb3b6d0b9ae829179cc3e915be5ccc51cbec46fa846", "visual/results/runtime_geometry/f9b0da8588734a28996a38f3724da16a/geometry.json.tracking.json": "0b58634e7518ccc5f8baf0c5ff27af7d4a13e80cb23f3c228dfdc776ad402d73", "visual/results/runtime_tracking/ep000/masks.npz": "6bf9555a9c97c83a09d9733e582e9c4b9509f95e9dd06854ba05d3ac25fb7042", "visual/runtime/README.md": "2e678a660ef5bf5522d104b2023a792016ce5006bbfa6d441e1149c91909db66", "visual/runtime/geometry.md": "bd3b76873cd3846823b00bef34a656ea0a952d2fe535c44f6649026c1ab2ef66", "visual/runtime/geometry.py": "36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9", "visual/runtime/grounding.py": "3c372c90aa3b77edb598e4222d2747cdd17ef979898b12602e14401cf3bcda7b", "visual/runtime/initialization.py": "27800d6c5b5cddff28209a371dbe6fe1c0e8c84bf2a54ad049345a3fb1fa1252", "visual/runtime/rgbd.md": "2d4381811701087c2217c003729d128c9f318a414298015ca84228a2ed84e86d", "visual/runtime/rgbd.py": "be76fef13d5f58a7199f3952c1f59ce3bf9d1a2ddac09a6773dce39e9f891164", "visual/runtime/test/benchmark_pca_cuda.py": "052e300cb9b7aedc04dae3cd20c22614ebcdd2f1d0e0bae482271e325fded84a", "visual/runtime/test/benchmark_pca_streaming.py": "2ad4ddcaa33a03f7922f79312f8d959b9ad92fa2bfa2a03a718f13f866a26fcb", "visual/runtime/test/normal_diagnostics.py": "d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc", "visual/runtime/test/normal_estimators.py": "e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262", "visual/runtime/test/pca_optimized.py": "ab8f2153b30a2a5f4500bfc46a374358848af068e33d8e6baf2924b72e037bf1", "visual/runtime/test/pca_torch.py": "6a27dd01efbc411d88e8bd9a595c29797ce70f4d4308cc6c88b6af543defb482", "visual/runtime/test/pca_triton.py": "699100eee075ee11eb1a4b1b1e94bbd5da92d2e5733c5b99f7df462451e8e692", "visual/runtime/test/run_geometry.py": "cd051a6bbae95593351b8c10d96a413216c768550bac2221d58ce8b55d1727c3", "visual/runtime/test/run_grounding.py": "86fa4d84acd43a69e31e7e240ea79d19d9e26f33ea9fcc1a64fb8018fcf7d89d", "visual/runtime/test/run_normal_comparison.py": "b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b", "visual/runtime/test/run_normal_diagnostics.py": "688c07957dd04e3ee7abbcebf962745199a194df317a266e2642c9d8bdae64aa", "visual/runtime/test/run_pca_optimization.py": "4353e5a59377ff8e918df564d215385feb4c8394d378e34f80b1451cbe195b0b", "visual/runtime/test/run_rgbd.py": "374bf129dc2eaf7f9c000a9b19fa2816ce1c0580ec59bc79ca326c7e198a363a", "visual/runtime/test/run_tracking.py": "28689bad6afcf0116cd23596e8ec09e5601fcb9b6f35ae093d1972bcc4af10f3", "visual/runtime/test/test_geometry.py": "cff95cb959cd0ccdb6370b907c6d50c04fd3cc1770d4111e3459c8d5d2c2924d", "visual/runtime/test/test_geometry_evaluation.py": "27c2bd3c46cb2ddbc67fa58f8899b70b178640aa7b05e90349d5272e7633c866", "visual/runtime/test/test_initialization.py": "8a9928a656f3b02d55a07f3dde798df96053217f7829ef61494cb3dc879f34e0", "visual/runtime/test/test_normal_comparison.py": "cc3e5cfe1dd9322412fc939247c4dd4258e22ca09eec77a07ce2d18d9513ab79", "visual/runtime/test/test_normal_diagnostics.py": "62898a79895a74d9e982d7ccb1996ca44a99af3a9890c18d2776a74a4680e5b4", "visual/runtime/test/test_pca_optimized.py": "a41d5a75b8e38987d17bd697efe538f776a530df753301d8666ded2e82fe8ad1", "visual/runtime/test/test_rgbd.py": "bc2331b428c41276711156781771d820201c8b5da9d2e5e5efb785273e1e66c3", "visual/runtime/test/test_rgbd_evaluation.py": "4e931d5f562f70ca967505c437c7f93fe0be8dcaacfe6169db88171bad229942", "visual/runtime/tracking.py": "001630b2a71094182d488ba079dc13f6bb7b9cb46f7f9f366aca6a0db3c32522" }}12345678910<!doctype html><html><meta charset="utf-8"><title>Task02-C</title><style>body{font:15px system-ui;max-width:1800px;margin:24px auto}img{width:100%}</style><h1>Task 02-C — structural edge candidate comparison</h1><p>Run b622e76deceb419ab9c5aa80a8f8280c; all 121 frames; CPU only.<a href="comparison.json">Full sweep / counts / errors / latency / density / frame metrics</a>.</p><p>PCL: NOT RUN (absent). RGB Canny: disabled. GT never used by detectors. Union is a proposal, not a structural class.Whole-support precision uses <=2px AND <=3mm to visible physical references, without GT corridor filtering.One-to-one matching additionally penalizes thick bands. Errors to GT are conditional on references being visible;empty predictions still give zero recall. Curves sweep angle while preserving the original depth gate and normal support.Rim line samples use the unchanged visible physical rim ROI for visibility; legacy band coverage remains in JSON.No independent episode or final production threshold selection. Colours are debugging only; causes overlap.</p><p><a href="tradeoffs.png"><img src="tradeoffs.png"></a></p><p><a href="density.png"><img src="density.png"></a></p><p><a href="f0000_comparison.png"><img src="f0000_comparison.png"></a></p><p><a href="f0015_comparison.png"><img src="f0015_comparison.png"></a></p><p><a href="f0045_comparison.png"><img src="f0045_comparison.png"></a></p><p><a href="f0080_comparison.png"><img src="f0080_comparison.png"></a></p><p><a href="f0120_comparison.png"><img src="f0120_comparison.png"></a></p></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255"""Organized, observation-only NumPy geometry diagnostics (Task 01).
All arrays retain the source (v, u) image layout. This is an internal baseline,not structural classification, sampling, or the final Vision--Graph interface.No RGB values, object GT, erosion, outlier removal, or reconstruction are used."""
from __future__ import annotations
from dataclasses import dataclassfrom time import perf_counter
import numpy as np
from visual.runtime.rgbd import BOX, PEG, TrackedRGBDFrame
@dataclass(frozen=True)class GeometryParameters: """Adjacent z jump > abs + rel * min(z1, z2), in metres.
These are diagnostic baseline thresholds, not edge-classification settings. The same gate prevents a normal stencil from crossing a detected z jump. """
depth_jump_abs_m: float = 0.01 depth_jump_rel: float = 0.02
def __post_init__(self) -> None: values = (self.depth_jump_abs_m, self.depth_jump_rel) if not np.isfinite(values).all() or min(values) < 0: raise ValueError("depth jump thresholds must be finite and nonnegative")
@dataclass(frozen=True)class OrganizedGeometry: """CV-camera XYZ in metres; invalid depth has three NaNs, never a point.
``xyz[v, u]`` corresponds to source pixel centre ``(u+.5, v+.5)``. Finite background geometry is retained, but only ``observed_mask(id)`` may be used as that object's points. Overlapping tracker masks are preserved and marked ambiguous; those pixels are excluded from BOTH object supports. """
xyz: np.ndarray valid_depth: np.ndarray object_masks: dict[int, np.ndarray] overlap_mask: np.ndarray
def observed_mask(self, object_id: int) -> np.ndarray: return self.object_masks[object_id] & self.valid_depth & ~self.overlap_mask
@dataclass(frozen=True)class GeometricFeatures: """Pixel-aligned diagnostics for one object, without semantic edge labels.
Unavailable floating features are NaN and have explicit validity masks. ``depth_jump_m`` compares a supported centre to ANY finite 4-neighbour, including other labels/background; it measures observation discontinuity. Mask, invalid-depth, and image boundaries are separate diagnostic flags. ``mask_boundary`` can include invalid/ambiguous mask pixels: it is NOT a point selection. Geometry selection always requires ``valid_points``. Normal variation is the maximum angle (radians) to supported same-object 4-neighbour normals; even a smooth curved surface can have a large value. """
object_mask: np.ndarray valid_points: np.ndarray normals: np.ndarray normal_valid: np.ndarray depth_jump_m: np.ndarray depth_pair_valid: np.ndarray depth_discontinuity: np.ndarray mask_boundary: np.ndarray depth_validity_boundary: np.ndarray image_boundary: np.ndarray normal_variation_rad: np.ndarray normal_variation_valid: np.ndarray normal_neighbor_count: np.ndarray
@dataclass(frozen=True)class GeometryFrame: source_frame: int camera: str frame_idx: int | None timestamp: float | None geometry: OrganizedGeometry objects: dict[int, GeometricFeatures] timings_ms: dict[str, float]
def build_organized_geometry(frame: TrackedRGBDFrame) -> OrganizedGeometry: """Adapt pointcloud.backproject's pixel-centre equations to dense layout.
Kept NumPy-only rather than importing the legacy plotting/SciPy module. No depth is filtered, filled, smoothed, or selected before feature analysis. """ depth = np.asarray(frame.depth) if depth.ndim != 2 or not min(depth.shape) or not np.issubdtype(depth.dtype, np.floating): raise ValueError("depth must be a nonempty floating point (H,W) array in metres") intrinsic = np.asarray(frame.intrinsic, dtype=np.float64) if (intrinsic.shape != (3, 3) or not np.isfinite(intrinsic).all() or intrinsic[0, 0] <= 0 or intrinsic[1, 1] <= 0): raise ValueError("intrinsic must be finite (3,3) with positive focal lengths") # The legacy equations assume the standard zero-skew CV pinhole intrinsic. if not np.allclose(intrinsic[[0, 1, 2, 2, 2], [1, 0, 0, 1, 2]], [0, 0, 0, 0, 1]): raise ValueError("intrinsic must use the standard zero-skew CV pinhole form") if set(frame.masks) - {PEG, BOX}: raise ValueError("unknown output object ID; expected PEG=0 or BOX=1") masks = {} for object_id in (PEG, BOX): mask = np.asarray(frame.masks.get(object_id, np.zeros(depth.shape, dtype=bool))) if mask.shape != depth.shape or mask.dtype != np.bool_: raise ValueError("object masks must be boolean (H,W) arrays matching depth") masks[object_id] = mask.copy() valid = np.isfinite(depth) & (depth > 0) xyz = np.full((*depth.shape, 3), np.nan, dtype=np.float32) v, u = np.nonzero(valid) # Exactly the equations in visual/scripts/pointcloud.py::backproject. z = depth[v, u] xyz[v, u, 0] = (u + 0.5 - intrinsic[0, 2]) * z / intrinsic[0, 0] xyz[v, u, 1] = (v + 0.5 - intrinsic[1, 2]) * z / intrinsic[1, 1] xyz[v, u, 2] = z if not np.isfinite(xyz[valid]).all(): raise ValueError("finite positive depth/intrinsic must yield representable float32 XYZ") return OrganizedGeometry(xyz, valid, masks, masks[PEG] & masks[BOX])
def _pairs(): """Each in-image horizontal/vertical pair once; no wrap or padded neighbours.""" yield (slice(None), slice(None, -1)), (slice(None), slice(1, None)) yield (slice(None, -1), slice(None)), (slice(1, None), slice(None))
def _jump(z1: np.ndarray, z2: np.ndarray, parameters: GeometryParameters) -> np.ndarray: # Inputs have invalid z replaced by zero by callers, avoiding NaN/Inf math. return np.abs(z1 - z2) > ( parameters.depth_jump_abs_m + parameters.depth_jump_rel * np.minimum(z1, z2) )
def estimate_surface_normals( geometry: OrganizedGeometry, object_id: int, parameters: GeometryParameters,) -> tuple[np.ndarray, np.ndarray]: """Central cross product from a full, same-object 5-pixel (+) stencil.
Centre and four neighbours must have unambiguous valid depth, and none of the four centre-to-neighbour pairs may exceed the z-jump gate. No one-sided fallback or extrapolation is performed at holes, mask/image borders, or tiny fragments. Unit normals point towards the camera (n dot XYZ <= 0). """ xyz = geometry.xyz normals = np.full_like(xyz, np.nan) normal_valid = np.zeros(geometry.valid_depth.shape, dtype=bool) if min(normal_valid.shape) < 3: return normals, normal_valid support = geometry.observed_mask(object_id) centre = (slice(1, -1), slice(1, -1)) neighbours = ((slice(1, -1), slice(None, -2)), (slice(1, -1), slice(2, None)), (slice(None, -2), slice(1, -1)), (slice(2, None), slice(1, -1))) usable = support[centre].copy() z = np.where(geometry.valid_depth, xyz[..., 2], 0) for neighbour in neighbours: usable &= support[neighbour] & ~_jump(z[centre], z[neighbour], parameters) # Compute only complete stencils, so invalid XYZ never enters a cross product. v, u = np.nonzero(usable) v, u = v + 1, u + 1 dx = xyz[v, u + 1].astype(np.float64) - xyz[v, u - 1] dy = xyz[v + 1, u].astype(np.float64) - xyz[v - 1, u] cross = np.cross(dx, dy) length = np.linalg.norm(cross, axis=1) good = np.isfinite(length) & (length > 0) v, u, cross = v[good], u[good], cross[good] / length[good, None] cross[np.einsum("ij,ij->i", cross, xyz[v, u]) > 0] *= -1 normals[v, u] = cross.astype(np.float32) normal_valid[v, u] = True return normals, normal_valid
def compute_geometric_features( geometry: OrganizedGeometry, object_id: int, normals: np.ndarray, normal_valid: np.ndarray, parameters: GeometryParameters,) -> GeometricFeatures: """Measure separate 4-neighbour boundary causes and local normal variation.""" mask = geometry.object_masks[object_id] support = geometry.observed_mask(object_id) shape = mask.shape z = np.where(geometry.valid_depth, geometry.xyz[..., 2], 0) jump_m = np.zeros(shape, np.float32) pair_valid = np.zeros(shape, bool) discontinuity = np.zeros(shape, bool) mask_boundary = np.zeros(shape, bool) validity_boundary = np.zeros(shape, bool) variation = np.zeros(shape, np.float32) count = np.zeros(shape, np.uint8) for a, b in _pairs(): both_depth = geometry.valid_depth[a] & geometry.valid_depth[b] dz = np.abs(z[a] - z[b]) jumps = both_depth & _jump(z[a], z[b], parameters) both_normals = normal_valid[a] & normal_valid[b] angle = np.zeros(both_normals.shape, np.float32) n1, n2 = normals[a][both_normals], normals[b][both_normals] # atan2 is stable near zero, including identical rounded float32 normals. angle[both_normals] = np.arctan2( np.linalg.norm(np.cross(n1, n2), axis=1), np.einsum("ij,ij->i", n1, n2) ) for p, q in ((a, b), (b, a)): available = support[p] & both_depth pair_valid[p] |= available np.maximum(jump_m[p], np.where(available, dz, 0), out=jump_m[p]) discontinuity[p] |= support[p] & jumps mask_boundary[p] |= mask[p] & ~mask[q] validity_boundary[p] |= support[p] & ~geometry.valid_depth[q] np.maximum(variation[p], angle, out=variation[p]) count[p] += both_normals jump_m[~pair_valid] = np.nan variation_valid = normal_valid & (count > 0) variation[~variation_valid] = np.nan image_boundary = np.zeros(shape, bool) image_boundary[[0, -1], :] = mask[[0, -1], :] image_boundary[:, [0, -1]] = mask[:, [0, -1]] return GeometricFeatures( object_mask=mask, valid_points=support, normals=normals, normal_valid=normal_valid, depth_jump_m=jump_m, depth_pair_valid=pair_valid, depth_discontinuity=discontinuity, mask_boundary=mask_boundary, depth_validity_boundary=validity_boundary, image_boundary=image_boundary, normal_variation_rad=variation, normal_variation_valid=variation_valid, normal_neighbor_count=count, )
def process_geometry( frame: TrackedRGBDFrame, parameters: GeometryParameters | None = None,) -> GeometryFrame: """Process one current observation; no cache, final classification, or RGB features.""" parameters = parameters or GeometryParameters() start = perf_counter() geometry = build_organized_geometry(frame) after_geometry = perf_counter() normals = {object_id: estimate_surface_normals(geometry, object_id, parameters) for object_id in geometry.object_masks} after_normals = perf_counter() features = {object_id: compute_geometric_features( geometry, object_id, *normals[object_id], parameters, ) for object_id in geometry.object_masks} end = perf_counter() timings = dict(geometry=(after_geometry - start) * 1000, normals=(after_normals - after_geometry) * 1000, discontinuity_features=(end - after_normals) * 1000, total=(end - start) * 1000) return GeometryFrame(frame.source_frame, frame.camera, frame.frame_idx, frame.timestamp, geometry, features, timings)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360# Task 02-C — Structural Edge Candidate Detection 비교
**Task 02-C의 후보 검출 비교를 완료하고 중단한다.** Sampling, 최종 분류, graph,runtime 기본값은 변경하지 않았다. 후속 Structural Point 검토에는 **C의 PCA 5×5orientation 후보와 분리된 depth 경계 증거**를 우선 추천한다. CPU 비용이 우선이면B의 FD 2px도 유력하다. **원시 depth OR variation을 그대로 구조점으로 채택할 만큼충분한 결과는 어느 방법에서도 얻지 못했다.** A도 높은 threshold에서 경쟁력이 있어단일 threshold나 단일 지표로 최종 알고리즘을 확정할 수 없다.
최종 run: `b622e76deceb419ab9c5aa80a8f8280c`.[비교 HTML](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/comparison.html),[전체 JSON](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/comparison.json),[threshold / PR 그림](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/tradeoffs.png),[공간 분포](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/density.png),[검증·보존 기록](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/verification.json),[Task 02-C diff](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/implementation.patch).
## 1. 범위와 입력
같은 저장 simulator RGB-D `visual/data/step2/ep000.npz`, 같은`visual/results/runtime_tracking/ep000/masks.npz`, `base_camera`, 원본 512×512,source frame **0–120 전체 121개**를 사용했다. 실제 물리 depth 센서 데이터나 독립episode 검증은 아니다. Tracking / simulator / Grounding DINO를 다시 실행하지 않았다.
- Episode SHA-256: `22ad72d776057da9ed5f85014cba47b4603e421623f29763c88edb159a5087ba`- Masks SHA-256: `6bf9555a9c97c83a09d9733e582e9c4b9509f95e9dd06854ba05d3ac25fb7042`- `geometry.py` SHA-256: `36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9`
| 조건 | 후보 검출 || --- | --- || A | 기존 `estimate_surface_normals` + 기존 variation + depth jump || B | Task 02-B `finite_difference(..., 2)` + 같은 variation + depth jump || C | Task 02-B `local_plane(..., 5)` + 같은 variation + depth jump || D | 공식 PCL 검토 완료, dependency 부재로 **NOT RUN** |
Normal 지원, invalid 처리, patch 연결·rank 조건은 Task 02-B와 동일하다. 최적화PCA 구현으로 교체하지 않았다. Variation은 1px 4-neighbour의 최대 oriented angle,depth gate는 기존 `abs(dz) > 0.01m + 0.02*min(z1,z2)`다. GT, segmentation,pose, 물체 치수는 검출 후 평가에만 사용한다. RGB는 overlay 배경에만 사용했다.RGB Canny 조건을 추가하지 않았고 RGB node feature도 만들지 않았다.
## 2. 서로 다른 경계 증거와 pixel-pair 보존
새 비교 전용 [`structural_edges.py`](../../visual/runtime/test/structural_edges.py)는각 물체 raw mask에 닿는 인접 좌우/상하 pair를 한 번씩 저장한다. Pair의 두 endpoint는원본 `flat_index=v*W+u`다. 매 프레임의 `fNNNN_pairs.npz` 121개에 다음을 보존했다.
| 필드 | 의미 || --- | --- || `pixels[P,2]`, `shape` | 원본 인접 pixel pair, 원본 raster 크기 || `supported[P,2]` | 각 endpoint가 해당 물체의 유효·비중첩 관측점인지 || `normal_angle_deg[P]` | 양쪽 normal이 유효할 때의 orientation 차이; 나머지는 NaN || `signed_depth_delta_m[P]`, `depth_jump[P]` | 유효 depth 양쪽의 signed 차이와 기존 jump gate 결과 || `near_endpoint`, `far_endpoint` | jump의 가까운/먼 endpoint 0 또는 1; jump 없으면 −1 || `mask_boundary`, `invalid_depth_boundary`, `overlap[P,2]` | mask 전환, depth validity XOR, tracker 중첩을 독립적으로 기록 |
`orientation`, `depth`, `union`, `occluding`, `occluded`, `invalid`, `mask` map은pair에서 복원할 수 있다. 표의 주 비교 후보는 요구한 **orientation OR depth**다.원인 flag는 겹칠 수 있고, 같은 pixel이 서로 다른 pair에서 near와 far 양쪽일 수도 있다.near/far는 **관측 depth 순서에 따른 잠재적 가림 방향**이며 실제 robot 가림의 확정라벨이 아니다. Depth jump에는 grazing 표면·silhouette·tracker 오염도 섞인다.Mask 전환이나 invalid depth 자체를 structural 후보에 OR하지 않는다.
영상 밖에는 가상 pair를 만들지 않는다. Raster shape로 image border를 확인한다.가림 뒤의 depth를 보간하거나 무효 depth를 0m 점으로 비교하지 않는다. Pair 정보는향후 intra-object filtering에서 양쪽 소속·jump 방향을 검사하는 데 필요하다.이 pair는 관측 증거이며 **GNN graph edge를 생성한 것이 아니다.**
## 3. GT와 지표 정의
Task 02-A/B의 `real_truth`, `real_regions`, `rim_region`, analytic cuboid oracle을변경 없이 재사용했다. Peg plane의 analytic depth 잔차 ≤1.5mm, 다른 면에서 4mm여유, signed face별 3px erosion도 그대로다.
Peg seam reference는 서로 다른 **GT 가시 signed face의 맞닿는 양쪽 raster endpoint**32,664 pixel-frame다. 따라서 Peg의 위치 오차는 그 endpoint에 대한 값이며 subpixelCAD 선분까지의 정확한 오차는 아니다. Box의 다른 가시 face junction도 전체 precision의positive reference에 포함한다. Silhouette를 구조 GT로 추가하지 않는다.
Hole rim은 기존 **가시 물리 rim band 3,425 pixel-frame**의 coverage를 별도로 유지했다.그 안에서 보이는 입구 선분을 subpixel로 투영하고, 기존 가시 rim 표면까지 ≤1.5px 및≤4mm인 선분 sample만 남겼다. 투영된 raster cell당 선분의 가장 가까운 한 점을 선택한**1,778개 물리 선분 reference**로 위치와 coverage를 평가했다. 이는 평가용 GT 이산화다.검출 point의 sampling은 아니다. 가려진 전체 rim 투영을 정답으로 채우지 않았다.GT 가시성 역시 이 raster/metric tolerance를 이용한 근사라는 한계가 있다.
전체 reference는 물체별 seam/rim을 같은 raster cell에서 중복 제거한 **35,869개**다.같은 물체끼리만 매칭한다. 후보를 GT 주변 corridor로 제한하지 않고 tracker의 모든관측 point에서 평가한다. 잘못 포함된 robot/background 후보도 precision 분모에 남는다.
- **Precision:** 전체 후보 중 같은 GT reference와 **≤2px AND ≤3mm**를 동시에 만족하는 비율.- **Recall / coverage:** GT reference 중 같은 조건의 후보가 하나 이상 있는 비율. Tracker가 놓친 reference도 분모에 남는다.- **일대일 지표:** 같은 허용오차의 최대 bipartite matching으로 후보와 reference를 각 한 번만 인정한다. 넓은 후보 띠의 중복을 벌점화한다.- **위치 오차:** 후보→GT와 GT→후보의 최근접 2D/3D 거리를 모두 기록한다. 두 거리 통계의 최근접 상대는 다를 수 있지만 P/R 판정은 같은 pair에 두 조건을 적용한다.- **False candidate:** 알려진 구조 reference 주변 Manhattan 3px를 제외한 plane / silhouette / occlusion / tracker-cut ROI에서 후보 비율. ROI는 서로 겹칠 수 있다.
Box plane은 GT signed face별 3px erosion과 rim 4px 제외를 추가한 평가 control이다.Robot occlusion은 저장 `segmentation_id_map.json`의 `panda_*` IDs 1–13을 사용해기존 occlusion ROI의 **물체 가시 측**만 구분했다. 일반 occlusion과 구분해 JSON에 남겼다.Invalid-depth Peg ROI의 관측점은 0개이므로 그 false rate는 N/A다.
Reference가 없는 물체/frame의 후보도 precision 분모에 남고 위치 오차만 missing이다.후보가 없으면 recall은 0이다. 일대일 지표는 GT raster 이산화/밀도에 의존하며 최종sampling 품질의 정답 점수는 아니다. Micro 집계는 연속 pixel-frame이므로 독립 표본에대한 신뢰구간이나 일반화 성능을 주장하지 않는다.
## 4. 동일 20°에서의 후보 검출
20°는 공통 비교·그림을 위한 조건이며 production threshold가 아니다.
| 방법 | 후보 수 | Precision | Recall | 일대일 F1 | Peg seam coverage | 물리 rim line coverage | 기존 rim band coverage || --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: || A | 432,182 | 15.88% | 95.03% | 14.36% | 96.44% | 74.92% | 69.75% || B | 107,297 | 51.64% | 91.08% | 45.14% | 93.29% | 74.18% | 63.33% || C | 101,948 | 49.02% | 91.76% | 47.29% | 94.04% | 75.31% | 63.85% || D | NOT RUN | — | — | — | — | — | — |
A의 95.03% coverage는 363,539개의 unmatched 후보를 동반한다. B/C의 unmatched는51,894/51,973개다. 전체 관측점 1,051,134개에서 후보 밀도는 A 41.12%, B 10.21%,C 9.70%다. Peg/Box별 밀도는 A 49.76/24.90%, B 11.24/8.28%, C 10.06/9.02%다.고밀도 A가 coverage에서 유리하다는 사실을 precision과 일대일 점수가 드러낸다.
## 5. Threshold sweep과 trade-off
**2, 5, 10, 15, 20, 25, 30, 40, 60, 90, 180°**의 모든 조건에서 같은 GT와동일한 tolerance를 썼다. 180°는 depth-only control이다. Depth gate와 normalsupport는 기존 비교를 보존하기 위해 고정했다. Depth threshold 최적화 결과는 아니다.JSON에는 union과 orientation-only의 전체 sweep, 분모·분자, 위치·밀도가 있다.
| 방법·각도 | Union precision / recall | Union 일대일 F1 | Peg seam / 물리 rim coverage || --- | ---: | ---: | ---: || A 10° | 9.77 / 97.35% | 8.35% | 98.55 / 76.27% || A 30° | 24.06 / 92.77% | 24.49% | 94.74 / 74.92% || A 40° | 43.48 / 91.65% | 53.22% | 93.79 / 74.92% || B 10° | 20.64 / 94.77% | 17.00% | 95.88 / 74.18% || B 20° | 51.64 / 91.08% | 45.14% | 93.29 / 74.18% || B 30° | 44.04 / 89.36% | 52.19% | 91.89 / 74.18% || C 10° | 53.36 / 93.11% | 40.77% | 95.07 / 75.31% || C 20° | 49.02 / 91.76% | 47.29% | 94.04 / 75.31% || C 30° | 41.45 / 85.93% | 50.56% | 89.17 / 75.20% |
A 40°의 union 일대일 F1은 이 sweep에서 B/C의 최대값보다 높다. Quantization의큰 반응을 threshold로 잘라내면 A도 유력하므로 “PCA가 모든 지표에서 우세”라고결론 내릴 수 없다. 이 수치는 같은 episode에서 본 최대값이며 validation으로 선택한threshold가 아니다. FD/PCA의 지원 window는 진짜 sharp orientation 반응도 퍼뜨려40° 이후 seam coverage를 크게 잃는다.
Orientation-only 20°의 P/R은 A **17.19/91.86%**, B **86.33/86.39%**,C **80.29/90.19%**다. 물리 rim coverage는 각각 **40.89/39.82/64.29%**다.C는 B보다 orientation만으로 rim을 더 보존하지만 부분 patch의 boundary 오반응도 남는다.Depth-only는 모든 방법에서 후보 **45,697개**, P/R **4.86/7.40%**, rim coverage37.06%다. Depth를 합치면 rim recall이 늘어도 전체 precision은 크게 낮아진다.관측 depth jump를 structural이라고 자동 분류하면 안 된다는 직접적인 근거다.
## 6. 위치와 관측 실패
20° union에서 GT→후보 거리의 p50 / p95:
| 대상·방법 | 2D (px) | 3D (mm) || --- | ---: | ---: || Peg A | 0 / 1 | 0.577 / 1.401 || Peg B | 0 / 1 | 0.602 / 3.693 || Peg C | 0 / 1 | 0.619 / 3.446 || Rim A | 0.345 / 13.465 | 1.483 / 27.064 || Rim B | 0.356 / 14.373 | 1.514 / 29.199 || Rim C | 0.389 / 14.351 | 1.538 / 28.433 |
전체 후보→GT 거리의 p50 / p95는 A **10.00/37.66px, 9.99/74.69mm**,B **1.41/47.01px, 1.41/164.69mm**, C **1.41/51.67px, 1.87/176.89mm**다.물체/frame에 가시 reference가 있을 때의 거리이며 N/A frame 후보 수는 별도 기록한다.B/C의 p95가 더 큰 것은 평면 후보가 줄어드는 동안 먼 오염·가림 후보의 비중이커지는 효과도 포함한다. 이를 유효한 seam의 위치가 전부 더 나빠졌다는 뜻으로해석하지 않는다. Raw positive depth outlier도 제거하지 않아 3D maximum은 매우 크다.
| Frame | Peg seam GT / A·B·C 검출 | 물리 rim GT / A·B·C 검출 | 확인 사항 || --- | ---: | ---: | --- || 0 | 464 / 461·459·462 | 103 / 103·103·103 | A의 넓은 평면 오반응, B/C의 crease 집중 || 15 | 447 / 441·436·441 | 0 / N/A | 손 가림, rim 비가시성을 검출 실패율로 만들지 않음 || 45 | 287 / 287·286·287 | 0 / N/A | Box orientation 후보 B/C=0, depth 후보는 각각 159개 남음 || 80 | 188 / 176·156·159 | 0 / N/A | 손 가림, tracker 오염·중첩·지원 손실 || 120 | 132 / 96·82·83 | 41 / 4·4·4 | Rim 관측 실패가 모든 방법의 coverage를 제한 |
Frame 120은 기존 rim band 51개 중 tracker 관측이 15개이고, union 후보는 모두 6개다.물리 선분 reference coverage는 4/41=9.76%다. 정상적인 평균 rim 결과만 보고 이런실패를 숨기면 안 된다. 기존 band 전체 3,425개 중 tracker 관측은 2,911개(84.99%)다.어떤 estimator도 잃은 관측을 복원하지 않는다.
## 7. 평면·가림·mask 혼동
다음은 알려진 구조 주변 3px를 제외한 **관측 point 중 union>20° 후보 비율**이다.GT 경계 ROI는 검출 입력이나 후보 삭제에 사용하지 않았다.
| 평가 영역 | A | B | C || --- | ---: | ---: | ---: || Peg 정상 평면 (342,004개) | 42.133% | 0.116% | 0.0015% || Box 정상 평면 (256,187개) | 18.301% | 0% | 0.036% || Peg silhouette | 48.130% | 21.014% | 21.235% || Box silhouette | 34.105% | 21.630% | 24.567% || Peg robot occlusion | 19.683% | 14.535% | 13.935% || Box robot occlusion | 44.784% | 28.957% | 29.094% || Peg 같은 면 tracker cut | 15.812% | 14.079% | 14.221% || Box 같은 면 tracker cut | 35.967% | 20.372% | 22.436% || Peg tracker contamination | 48.557% | 42.540% | 48.115% || Box tracker contamination | 63.294% | 49.653% | 59.528% || Box invalid depth 주변 | 20.915% | 2.577% | 2.577% |
양자화 평면의 대량 후보는 B/C에서 줄었다. 그러나 mask/robot/silhouette 혼동은해결되지 않았다. Invalid나 mask flag 자체를 union에 넣지 않아도 인접한 실제 depth차이와 불완전한 normal 지원 때문에 후보가 생긴다. 이 표는 비배타적인 경계별 위험을보여주며 원인별 FP 수를 서로 더하면 안 된다.
## 8. 시각화와 공간 분포
[0](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0000_comparison.png),[15](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0015_comparison.png),[45](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0045_comparison.png),[80](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0080_comparison.png),[120](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0120_comparison.png)은각 frame의 모든 방법에서 같은 full / Peg / Box crop, source `(u,v)` 좌표계를 쓴다.GT 패널과 detector 패널은 분리했다. Frame별 crop은 물체 이동을 따라가므로 모든frame에 똑같은 고정 crop을 강제하지는 않았다.
빨강=orientation 후보, 주황 square=depth jump, 자홍=near/잠재 occluding,청록=far/잠재 occluded, 흰���=invalid depth, 초록 circle=mask 경계다. 겹친 원인은marker 형태와 pair flags로 확인한다. 이 색상은 디버깅 전용이며 모델 입력이 아니다.GT 구조는 별도 패널의 노란색이다.
8×8 source-image tile별 누적 후보 수와 물체별 관측 대비 밀도를 JSON/heatmap에남겼다. A는 넓은 Peg·Box 평면에 퍼지고 B/C는 seam 주변에 모이지만, 손에 가려진후반 frame의 외곽·오염 후보는 남는다. 밀도 그림은 point-frame 점유 분포이며3D 표면 면적당 밀도나 sampling budget을 뜻하지 않는다.
## 9. CPU 비용
macOS arm64, Python 3.11.13, NumPy 2.4.6, SciPy 1.17.1 CPU에서 실행했다.121프레임 각각 Peg+Box를 계산하고 방법별 1회 warmup을 제외했다. 방법 실행 순서를frame마다 회전했다. 공유 XYZ 생성 비용을 각 방법 total에 포함했다. I/O, GT,threshold sweep 전체, 평가·매칭, 압축 저장, 그림, logger는 제외했다.
아래 값은 stage별 **p50 / p95 ms**, total은 단계 percentile의 합이 아닌 실제 합계의percentile이다. 관측 물체 면적이 줄어들어 특히 PCA의 frame별 비용 차이가 크다.
| 방법 | Normal | 기존 feature | Pair 증거 | 한 threshold map | 전체 (XYZ 포함) || --- | ---: | ---: | ---: | ---: | ---: || A | 3.978 / 5.614 | 8.406 / 9.873 | 1.902 / 4.105 | 0.307 / 0.621 | 20.888 / 26.918 || B | 2.815 / 5.610 | 8.387 / 9.750 | 1.860 / 3.933 | 0.293 / 0.558 | 19.730 / 26.794 || C | 21.909 / 62.898 | 8.539 / 9.698 | 1.911 / 4.136 | 0.294 / 0.587 | 39.364 / 82.433 || D | NOT RUN | — | — | — | NOT RUN |
공유 XYZ의 p50/p95는 6.793/7.532ms다. C의 total p50은 B의 약 2배다. 기존 PCA최적화 산출물은 보존했고 이번 비교에서는 사용하지 않았다. PCL의 추출·array copy·binding비용과 메모리 사용은 **미측정**이며 0ms 또는 빨라질 것으로 보고하지 않는다.
## 10. PCL 검토·설치 및 binding 제약
현재 root `.venv`에 `pcl`, `pclpy`가 없고 `ctypes.find_library`로 `pcl_common`,`pcl_features`도 찾지 못했다. `/opt/homebrew`, `/usr/local`, `/usr`의 표준 include경로에 organized-edge header가 없고 `pkg-config`도 없다. **D=NOT RUN**이다.시스템 package 설치, C++ build, Python binding 구현은 하지 않았다.
공식 [`OrganizedEdgeFromNormals` header](https://pointclouds.org/documentation/organized__edge__detection_8h_source.html)는XYZ+normal에서 NAN_BOUNDARY=1, OCCLUDING=2, OCCLUDED=4, HIGH_CURVATURE=8을반환한다. RGBNormals는 RGB_CANNY=16도 지원한다. Geometry-only 통합 시 FromNormals를쓰고 `setEdgeType(1|2|4|8)`로 RGB를 제외하는 것이 적합하다. Labels는 bitmask이며Corner/Edge/Surface 정답으로 변환하면 안 된다.
공식 [구현](https://pointclouds.org/documentation/organized__edge__detection_8hpp_source.html)을 보면depth는 8-neighbour 및 invalid 구간 검색을 사용하고, high-curvature는 normal x/y에Canny를 적용한다. A/B/C의 4-neighbour angle threshold와 같은 알고리즘·단위가 아니다.Depth threshold와 high-curvature low/high threshold를 각각 sweep해야 한다.
추후 허용된 환경에 통합할 정확한 범위:
1. **고정 버전 dependency:** 검토한 PCL 1.15.1 기준 CMake ≥3.16.3, C++17 기본 compiler, Eigen ≥3.3, Boost ≥1.71(`iostreams`; C++14 선택 시 `filesystem`도), FLANN ≥1.9.1. `pcl_features`의 전이 component는 common/search/kdtree/octree/filters/2d다. [루트 CMake](https://github.com/PointCloudLibrary/pcl/blob/pcl-1.15.1/CMakeLists.txt), [Boost 검사](https://github.com/PointCloudLibrary/pcl/blob/pcl-1.15.1/cmake/pcl_find_boost.cmake), [features dependency](https://github.com/PointCloudLibrary/pcl/blob/pcl-1.15.1/features/CMakeLists.txt) 기준이다. 이 geometry-only 경로에 visualization/VTK, 센서 OpenNI, CUDA는 필요하지 않다.2. **작은 독립 adapter:** 전체 PCL Python wrapping 대신 compiled CLI 또는 최소 pybind11 함수 하나로 `[H,W,3]` XYZ/normal → `[H,W] uint32` label과 원본 index를 반환한다. pybind11을 선택하면 해당 Python 3.11 arm64 ABI와 pybind11 build dependency가 추가된다.3. **Raster/NaN 계약:** width/height를 유지하고 invalid XYZ만 NaN 처리한다. Tracker 밖의 유효 배경 depth를 mask 때문에 NaN으로 바꾸면 인공 NAN_BOUNDARY가 생기므로 구분한다. 물체별 normal validity·camera-facing 규약, PCL의 NaN normal 처리도 실행 검증해야 한다.4. **공정성:** 우선 C의 같은 PCA5 normals를 공급해 edge 알고리즘 차이를 비교하고, PCL normal estimator를 추가한다면 독립 조건으로 나눈다. GT는 입력하지 않는다.5. **Provenance/검증:** 공식 label은 pixel label이라 실제 검색 상대 pair를 주지 않는다. 이번 4-neighbour pair 증거는 함께 보존하되 PCL의 8-neighbour/invalid-search 상대라고 주장할 수 없다. 그 상대가 필요하면 C++ instrumentation이 추가 작업이다. 합성 plane/crease/step/invalid/mask control, 기존 121프레임, 전체 PR, marshal·normal·PCL 시간을 분리해 실행해야 한다. 이 항목들은 후속 작업 범위이며 이번에 구현하지 않았다.
## 11. 추천과 중단 지점
C의 orientation 후보는 10–20°에서 plane 오반응을 억제하면서 seam coverage95.07–94.04%, orientation-only rim coverage 65.24–64.29%를 보였다. B의 같은orientation-only rim은 약 39.82%다. 가시 rim과 부분 normal 지원을 유지해야 하는후속 Structural Point 검토의 우선 후보로 C를 추천하는 이유다.
CPU 지연이 중요하면 B가 더 현실적이다. B 20°는 C 20°보다 전체 union precision이높고 비용이 절반 정도다. A 40°의 일대일 F1도 더 높으므로 후속 검토에서 제외하지않는다. Rim의 잃은 관측, robot/mask 경계, threshold에 따른 구조 약화 때문에**어떤 raw union도 충분한 최종 구조점 selector로 판단하지 않는다.**
후속 검토에서는 orientation 후보와 depth/near/far 증거를 분리해 해석하는 것이필요하다. 이번에는 경계 제거 정책, candidate thinning, Structural/Surface sampling,node budget, onehot/probability feature, intra-object graph, Tensor 출력, stale 처리,GNN/GRU 변경을 구현하지 않았다. `00_interface.md`와 Point Cloud Representation도변경하지 않았으며 production 기본값을 확정하지 않았다.
## 12. 테스트·변경 파일·재현성
- 새 unit/integration 테스트 **11/11 통과**: 원본 baseline 전체 field 동일성, 모든 sweep union 일치, 원본 인접 index/no wrap, mask cut·invalid depth의 비구조성, depth 양쪽·외부 이웃, overlap, RGB 비의존성, 2D 근접 occluder의 3D 매칭 실패, dense false 후보의 일대일 벌점, missing reference/prediction, UUID와 전 frame 보존.- 전체 runtime 회귀 **77개 실행: 74 통과, CUDA 3 skip**. Task 02-A/B 및 기존 PCA 최적화 CPU 테스트도 포함했다. CUDA/GPU, PCL, simulator backend는 이번에 실행하지 않았다.- 공통 Logger/Artifact **42/42 통과**. Sandbox 안의 실제 W&B offline SDK 테스트는 `ServicePollForTokenError`로 1개 실패했고, 동일 suite를 허용된 sandbox 밖에서 재실행해 42개 모두 통과했다. 실제 HF 게시나 W&B online 검증은 하지 않았다.- 121프레임 × 3방법 × 2물체 × 11 threshold에서 pair union과 기존 feature map의 full-raster 일치 assertion을 통과했다.
```bashWANDB_MODE=disabled MPLCONFIGDIR=/private/tmp/task02c-mpl \ .venv/bin/python -m visual.runtime.test.run_structural_edges
WANDB_MODE=disabled MPLCONFIGDIR=/private/tmp/task02c-mpl \ .venv/bin/python -m unittest discover -s visual/runtime/test -p 'test_*.py' -v
.venv/bin/python -m unittest tests.test_experiment_logger tests.test_experiment_artifacts -v```
추가한 code/doc는 아래 4개다. 기존 runtime와 Task 02-A/B 구현을 수정하지 않았다.
| 파일 | 역할 || --- | --- || [`structural_edges.py`](../../visual/runtime/test/structural_edges.py) | 비교 전용 pair evidence, A/B/C 검출·시간 측정 || [`run_structural_edges.py`](../../visual/runtime/test/run_structural_edges.py) | GT 평가, PR sweep, 전체 121 pair 저장, 그림·공통 Logger || [`test_structural_edges.py`](../../visual/runtime/test/test_structural_edges.py) | 11개 검증 || 이 문서 | 결과와 제한, 추천·중단 기록 |
`ExperimentLogger(team='visual', job_type='evaluate')`의 UUID/project/group과 로컬 기록,`link_output`/기존 사후 등록을 재사용했다. `utils.experiment_artifacts`의 digest와artifact inventory를 사용했으며 별도 W&B/HF transport를 추가하지 않았다. 원격 게시 없음.최종 UUID 디렉터리에 JSON, HTML, 그림 7개, pair NPZ 121개, 실행 당시 source 사본을보존했다. 중간 확인 run `6eed92...`, `935a86...`도 별도 디렉터리에 남겼으며 최종 수치는위 `b622e76...`만 사용한다.
작업 시작 commit은 `42e30e4...`, 최종 평가가 기록한 commit은 `366e9ce...`, dirty=true다.작업 도중 별도의 Task 02-B commit과 게시 문서 commit `b1ebe0e...`가 추가되었다.시작 시 hash한 기존 파일 368개 중 **366개는 동일**하다. 이 작업은 기존 데이터·결과·runtime·interface를 수정하지 않았다. 달라진 `02b_normal_comparison.md` 1개는 별도Task 02-B commit `366e9ce`에 포함된 게시 안내 5줄 추가다. 안내를 제외하면 시작 hash와일치하며 그 원문 사본도 보존했다. 다른 차이는 Finder 메타데이터 `.DS_Store` 1개다.보존 기록은 이 외부 변경을 구분한다. Task 02-C 파일은 stage/commit하지 않았다.새 파일을 포함한 diff는 `implementation.patch`로 제공하며, 기존 tracked code diff는 없다.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126"""Task 02-C observation-only comparison, never called by production runtime.
Sparse raster-pair evidence is NOT graph connectivity or a semantic edge class.Depth order only indicates potential occluding/occluded sides. No GT or RGB isaccepted. Thresholding retains overlapping causes instead of resolving them."""from dataclasses import dataclassfrom time import perf_counter
import numpy as np
from visual.runtime.geometry import ( GeometryFrame, GeometryParameters, build_organized_geometry, compute_geometric_features, estimate_surface_normals,)from visual.runtime.test.normal_estimators import finite_difference, local_plane
METHODS = ('baseline', 'fd2', 'pca5')THRESHOLDS = (2, 5, 10, 15, 20, 25, 30, 40, 60, 90, 180)PARAMETERS = GeometryParameters()
@dataclass(frozen=True)class PairEvidence: shape: tuple pixels: np.ndarray # [P,2] source flat indices, right/down neighbour once supported: np.ndarray # [P,2] unambiguous observed object endpoint mask_boundary: np.ndarray invalid_depth_boundary: np.ndarray # XOR depth validity, not zero-depth jump overlap: np.ndarray # [P,2], ambiguous tracker membership signed_depth_delta_m: np.ndarray # z(second)-z(first), NaN unless both valid depth_jump: np.ndarray normal_angle_deg: np.ndarray # NaN unless both normals available near_endpoint: np.ndarray # local pair endpoint 0/1, -1 unless a depth jump far_endpoint: np.ndarray
def endpoint_mask(self, selected, side=None): result = np.zeros(np.prod(self.shape), bool) for k in (0, 1): keep = selected & self.supported[:, k] if side is not None: keep &= side == k result[self.pixels[keep, k]] = True return result.reshape(self.shape)
def candidates(self, threshold): if not np.isfinite(threshold) or threshold < 0: raise ValueError('angle threshold must be finite and nonnegative') orientation = self.endpoint_mask(self.normal_angle_deg > threshold) depth = self.endpoint_mask(self.depth_jump) return dict(orientation=orientation, depth=depth, union=orientation | depth, occluding=self.endpoint_mask(self.depth_jump, self.near_endpoint), occluded=self.endpoint_mask(self.depth_jump, self.far_endpoint), invalid=self.endpoint_mask(self.invalid_depth_boundary), mask=self.endpoint_mask(self.mask_boundary))
def pair_evidence(geometry, object_id, normals, normal_valid, parameters=PARAMETERS): """Preserve all adjacent pairs touching the raw object mask, even invalids.
Mask transition, invalid depth and overlap flags are independent. An external finite-depth neighbour is retained to determine jump direction. Its XYZ is never included as an object normal support or an object candidate point. """ shape = geometry.valid_depth.shape indices = np.arange(np.prod(shape), dtype=np.int32).reshape(shape) mask = geometry.object_masks[object_id] support = geometry.observed_mask(object_id) parts = [] for a, b in (((slice(None), slice(None, -1)), (slice(None), slice(1, None))), ((slice(None, -1), slice(None)), (slice(1, None), slice(None)))): keep = mask[a] | mask[b] parts.append(np.column_stack((indices[a][keep], indices[b][keep]))) pixels = np.concatenate(parts) valid = geometry.valid_depth.ravel()[pixels] both = valid.all(1) z = geometry.xyz[..., 2].ravel()[pixels] delta = np.full(len(pixels), np.nan, np.float32) delta[both] = z[both, 1]-z[both, 0] jump = np.zeros(len(pixels), bool) jump[both] = np.abs(delta[both]) > (parameters.depth_jump_abs_m + parameters.depth_jump_rel*np.min(z[both], axis=1)) nv = normal_valid.ravel()[pixels].all(1) angles = np.full(len(pixels), np.nan, np.float32) n = normals.reshape(-1, 3)[pixels[nv]] angles[nv] = np.rad2deg(np.arctan2(np.linalg.norm(np.cross(n[:, 0], n[:, 1]), axis=1), np.einsum('ij,ij->i', n[:, 0], n[:, 1]))) near = np.full(len(pixels), -1, np.int8) near[jump] = np.argmin(z[jump], axis=1).astype(np.int8) far = np.where(jump, 1-near, -1).astype(np.int8) return PairEvidence(shape, pixels, support.ravel()[pixels], np.logical_xor(mask.ravel()[pixels[:, 0]], mask.ravel()[pixels[:, 1]]), valid[:, 0] ^ valid[:, 1], geometry.overlap_mask.ravel()[pixels], delta, jump, angles, near, far)
def compare(frame, rotation=0): start = perf_counter() geometry = build_organized_geometry(frame) geometry_ms = (perf_counter()-start)*1000 results, evidence = {}, {} order = METHODS[rotation % 3:]+METHODS[:rotation % 3] for method in order: start = perf_counter() if method == 'baseline': normals = {i: estimate_surface_normals(geometry, i, PARAMETERS) for i in geometry.object_masks} elif method == 'fd2': normals = {i: finite_difference(geometry, i, 2, PARAMETERS) for i in geometry.object_masks} else: normals = {i: local_plane(geometry, i, 5, PARAMETERS) for i in geometry.object_masks} after_normal = perf_counter() features = {i: compute_geometric_features(geometry, i, *normals[i], PARAMETERS) for i in normals} after_features = perf_counter() evidence[method] = {i: pair_evidence(geometry, i, *normals[i]) for i in normals} after_pairs = perf_counter() # One illustrative threshold pass; the evaluation sweep is excluded. for pair in evidence[method].values(): pair.candidates(20) end = perf_counter() timing = dict(geometry=geometry_ms, normals=(after_normal-start)*1000, features=(after_features-after_normal)*1000, pair_evidence=(after_pairs-after_features)*1000, threshold=(end-after_pairs)*1000, total=geometry_ms+(end-start)*1000) results[method] = GeometryFrame(frame.source_frame, frame.camera, frame.frame_idx, frame.timestamp, geometry, features, timing) return results, evidence123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376# Task 02-B — Quantization-Robust Normal Estimation 비교
**Task 02-B에서 완료·중단한다.** 후속 검토 후보로 **PCA 5×5**를 추천한다.평면 오반응, 실제 face seam 위치, 관측 normal coverage 사이에서 가장 유용한 절충을보였다. 다만 hole rim 반응 손실과 CPU 비용이 있어 최종 채택을 뜻하지 않는다.PCA 7×7이나 FD 4px를 평면 지표만으로 선택하면 실제 crease 반응을 잃는다.Runtime 기본 estimator와 threshold, [확정 interface](00_interface.md)는 바꾸지 않았다.
Run: `4b1c377ae2044344a4f596b249627d89`.[비교 HTML](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/comparison.html),[전체 수치 JSON](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/comparison.json),[trade-off 그림](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/tradeoffs.png),[검증 기록](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/verification.json),[이 Task의 코드·문서 diff](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/implementation.patch).
## 1. 변경 범위와 공통 조건
새 파일만 추가했다.
| 파일 | 역할 || --- | --- || [`normal_estimators.py`](../../visual/runtime/test/normal_estimators.py) | 독립 FD/PCA 비교 후보; runtime에서 자동 호출하지 않음 || [`run_normal_comparison.py`](../../visual/runtime/test/run_normal_comparison.py) | 합성·실제 동일 조건 평가, paired 통계, 경계 위치·coverage, CPU 시간, 시각화 || [`test_normal_comparison.py`](../../visual/runtime/test/test_normal_comparison.py) | 수치·지원 제한·baseline 동일성·평가 identity 테스트 13개 || 이 문서 및 새 UUID 결과 디렉터리 | 결과·한계·보존 증거 |
Baseline은 Task 01의 `estimate_surface_normals`와 `compute_geometric_features`를 그대로호출한다. 모든 방법은 **같은 원본 organized XYZ, depth, intrinsic, tracker mask**를사용하며 512×512 raster를 유지한다. Normal variation은 모두 유효한 **1px 4-neighbournormal과의 최대 oriented angle**이다. FD 간격을 늘려도 variation 비교 간격은 늘리지않는다. Task 02-A의 stride downsampling과 다르다.
GT segmentation, pose, 치수, analytic geometry는 estimator 입력이 아니다. 추출 후에만기존 `real_regions`, `rim_region`, `synthetic_case`, `metrics`, `summarize_rows`를 재사용했다.RGB는 그림에만 사용한다. NPZ의 GT는 `evaluation/` 아래에 분리했다.
| 방법 | Normal 지원 | 지원 제한·무효 처리 || --- | --- | --- || Baseline | 중심과 ±1px 십자형 5점 | 기존 동작 그대로 || FD 2px | ±2px secant의 cross product, span 4px | 중심부터 네 끝점까지 모든 중간 pixel이 같은 물체 support이고 모든 인접 depth pair가 gate 통과; 전체 경로가 없으면 invalid || FD 4px | ±4px secant, span 8px | FD 2px와 같은 규칙; downsampling 없음 || PCA 5×5 | patch 안 중심과 연결된 유효 3D 점의 covariance 최소 고유벡터 | 같은 물체·유효 depth·인접 jump gate를 만족하는 4-connected component만 사용; 부분 patch 허용 || PCA 7×7 | 위와 같은 PCA, 7×7 patch | 같은 규칙 |
Gate는 기존 `|Δz| > 0.01m + 0.02*min(z1,z2)`를 그대로 사용한다. 후보에서는**인접 1px pair**에 적용하며 긴 secant의 누적 depth 차이에 다시 적용하지 않는다.PCA 연결 탐색은 해당 patch 내부에서만 수행하므로 외부 우회 경로로 떨어진 조각을합치지 않는다. 연결된 연속 sharp crease나 gate 이하의 단차는 여전히 섞일 수 있다.
PCA는 중심 포함 최소 6점, covariance rank ≥2 및 유일한 최소 고유벡터가 필요하다.두 번째 고유값과 최소 두 고유값의 차이는 각각`max(1e-16 m², largest_eigenvalue*1e-8)`보다 커야 한다. Float64 중심 상대 covariance,uniform weight, batch 4096, camera-facing 방향을 사용한다. Residual trimming, GT face분할, smoothing, 무효점 보간은 없다. Invalid normal/variation은 NaN과 별도 validity다.
Normal 지원 반경은 FD2/FD4가 축 방향 2/4px, PCA5/PCA7이 정사각형 반경 2/3px이며variation은 여기에 1px 이웃 normal의 지원을 추가한다. z=0.25m, fx=256에서4/8/6px의 축 방향 span은 횡방향 기준 약 3.91/7.81/5.86mm다. 실제 표면 위 거리와동일하지 않으며 깊이·기울기에 따라 달라진다. 지원 크기에 맞춰 GT ROI를 재조정하지 않았다.
## 2. 데이터와 평가 영역
실제 데이터는 Task 02-A와 같은 저장 simulator RGB-D `visual/data/step2/ep000.npz`,`base_camera`, source 0–120의 **121프레임**이다. 물리 센서에서 새로 취득한 데이터가 아니다.Mask는 `visual/results/runtime_tracking/ep000/masks.npz`를 그대로 읽었다.
- Episode SHA-256: `22ad72d776057da9ed5f85014cba47b4603e421623f29763c88edb159a5087ba`- Mask SHA-256: `6bf9555a9c97c83a09d9733e582e9c4b9509f95e9dd06854ba05d3ac25fb7042`- 보존한 `geometry.py`: `36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9`
Peg 평면 ROI는 기존의 GT 가시 signed face, analytic depth 잔차 ≤1.5mm, 다른 면에서4mm 이상 거리, signed face별 3px erosion이다. Seam은 다른 가시 face가 맞닿는 양쪽raster endpoint와 기존 2px band다. Hole rim은 실제 입구 선분과의 3D 거리 ≤4mm 및2px 투영 band를 동시에 만족하는 GT 가시 표면이다. 가려진 rim의 투영은 정답으로추가하지 않았다. 평가 영역·5/10/20/30° threshold를 결과에 맞춰 변경하지 않았다.
기존 NPZ 94개(Visual 데이터·tracking 및 Graph audit)와 대표 Graph HDF5를 확인했다.다른 RGB-D·Tracking Mask episode 쌍은 찾지 못했다. `runtime_tracking/ep001`도`tracking.json`의 입력이 같은 `ep000.npz`여서 독립 검증으로 쓰지 않았다. Graph audit는state/GT이고 확인한 HDF5도 RGB-D 관측 쌍을 제공하지 않았다.[탐색 inventory](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/episode_inventory.json).**실제 결과와 추천은 ep000에 한정된 진단이며 독립 episode 검증 결과가 아니다.**
분포·percentile은 pixel-frame을 합친 micro 통계다. 연속 프레임은 독립 표본이 아니므로유의성·신뢰구간을 주장하지 않는다. 경계 band는 겹칠 수 있다. Band 반응률과 아래위치 coverage는 최종 structural detector의 precision/recall이 아니다.
## 3. 실제 Peg 평면: 정확도·variation·false response
고정 GT ROI 342,378 pixel-frame 중 같은 관측 point는 342,257개다.각 방법의 유효 normal에서 error를, 유효 variation에서 variation과 >threshold 비율을계산했다. 아래 비율의 분모를 coverage 표와 함께 해석해야 한다.
| 방법 | Error p50 / p95 (°) | Variation p50 / p95 (°) | >5° | >10° | >20° | >30° | Normal / 관측 point || --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: || Baseline | 5.364 / 23.564 | 14.677 / 33.547 | 66.293% | 60.138% | 42.123% | 21.490% | 99.948% || FD 2px | 3.245 / 8.687 | 5.905 / 16.780 | 53.479% | 28.859% | 0.114% | 0% | 99.861% || FD 4px | 1.109 / 4.980 | 2.736 / 9.288 | 33.093% | 0.541% | 0% | 0% | 98.257% || PCA 5×5 | 1.359 / 6.246 | 2.099 / 7.534 | 17.527% | 0.008% | 0% | 0% | 100% || PCA 7×7 | 0.795 / 3.579 | 1.018 / 3.423 | 0.261% | 0.001% | 0.001% | 0.001% | 100% |
이 ROI에서 normal과 variation의 유효 비율은 방법별로 동일하다. PCA7의 >20°는342,257개 중 3개다. 이 3개의 원인을 별도로 확정하지 않았으며 수치를 제거하지 않았다.Baseline의 >20°는 144,093개, FD2는 391개다.
모든 방법의 normal이 동시에 유효한 **336,293개의 동일 pixel**에서도 error p95는Baseline / FD2 / FD4 / PCA5 / PCA7 순서로**23.564 / 8.696 / 4.980 / 6.256 / 3.579°**다. 단순히 어려운 pixel을 invalid로제외해서 얻은 개선만은 아니다. JSON에는 방법별 baseline과의 pairwise 공통 지원 및all-method 공통 variation 비교도 있다.
## 4. Peg의 실제 face seam 보존과 위치
기존 2px band는 95,415 pixel-frame, tracker 관측은 94,052개다. 아래 반응률의분모는 **고정 관측 point**이며 invalid variation도 분모에 남는다.
| 방법 | Band normal coverage | >5° | >10° | >20° | >30° || --- | ---: | ---: | ---: | ---: | ---: || Baseline | 96.792% | 84.939% | 81.219% | 69.489% | 54.995% || FD 2px | 93.330% | 83.994% | 74.949% | 54.571% | 35.621% || FD 4px | 85.713% | 80.479% | 69.016% | 24.398% | 2.591% || PCA 5×5 | 99.871% | 83.782% | 68.305% | 49.522% | 33.350% || PCA 7×7 | 99.968% | 85.868% | 68.957% | 44.086% | 12.015% |
위치 평가는 **원래 seam endpoint**에서 가장 가까운 threshold 반응까지의 1/2/3pxcoverage와 반응→seam 거리를 함께 계산했다. 탐색 후보는 GT 가시 영역의 고정 6pxcorridor 안의 추출 반응이다. 해당 frame에 반응이 없으면 coverage는 0이고 거리값은missing이다. 평면 noise가 많은 방법은 가까운 반응을 우연히 찾기 쉬우므로 coverage하나로 순위를 정하지 않는다.
| 방법 | 2px coverage @5° | @10° | @20° | @30° | @20°의 1 / 3px coverage | 반응→seam 거리 p50 / p95 @20° || --- | ---: | ---: | ---: | ---: | ---: | ---: || Baseline | 99.023% | 98.981% | 98.895% | 98.665% | 97.891 / 99.519% | 2.000 / 5.831px || FD 2px | 97.646% | 97.581% | 97.165% | 95.852% | 93.874 / 98.604% | 1.000 / 2.000px || FD 4px | 91.312% | 90.776% | 76.926% | 13.345% | 56.916 / 88.339% | 1.000 / 3.162px || PCA 5×5 | 99.611% | 99.467% | 99.011% | 93.975% | 96.874 / 99.489% | 0.000 / 2.000px || PCA 7×7 | 99.630% | 99.498% | 97.055% | 40.219% | 87.736 / 98.341% | 1.000 / 2.000px |
PCA5는 평면 오반응을 크게 줄이면서 실제 seam 주변 반응의 위치를 유지했다. PCA7과FD4의 30° coverage는 크게 떨어져 모든 경계에 ��� window가 좋다고 할 수 없다.
[Frame 0 profile](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_profile.png)은GT seam만으로 고른 같은 수평 25px 선이다. Peak offset은 Baseline/FD2/FD4/PCA5/PCA7순서로 0/0/2/0/1px, >20° sample 수는 6/3/0/3/2개다. 이는 이 선에서의 threshold초과 sample 수이며 단일 edge의 연속 FWHM이 아니다. 전체 profile·5/10/20/30° 초과 폭을JSON에 저장했다. Frame 80의 FD2/PCA5 최대값은 다른 반응에 끌려 reference에서 12px떨어진다. **단일 profile의 global maximum을 곧바로 seam 검출 위치로 쓸 수 없다.**
## 5. Box의 관측 가능한 물리 hole rim
GT 가시 rim은 **3,425 pixel-frame**, tracker 관측은 **2,911개(84.993%)**로 모든방법에서 같다. 아래 union은 기존 관측 depth jump와 threshold variation의 OR이며입구 경계의 최종 semantic 분류가 아니다.
| 방법 | Normal / 관측 rim | Normal / GT 가시 rim | Variation >20° / 관측 rim | Union @5° / GT rim | @10° | @20° | @30° || --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: || Baseline | 74.442% | 63.270% | 58.399% | 83.387% | 83.387% | 69.752% | 63.241% || FD 2px | 52.971% | 45.022% | 50.842% | 65.139% | 64.847% | 63.328% | 54.015% || FD 4px | 51.941% | 44.146% | 13.294% | 64.000% | 51.912% | 31.416% | 25.985% || PCA 5×5 | 99.966% | 84.964% | 65.407% | 68.759% | 67.971% | 63.854% | 56.964% || PCA 7×7 | 100% | 84.993% | 43.559% | 69.022% | 64.642% | 45.839% | 42.832% |
PCA5는 거의 모든 **관측된** rim에서 normal을 얻지만, 고정 rim 영역의 union 반응은Baseline보다 낮다. Normal availability 증가를 구조 검출 coverage 증가로 주장할 수 없다.Baseline 반응 일부가 평면 quantization인지 물리 구조인지 이 band 통계만으로 완전히분해할 수 없으므로, 감소한 반응을 모두 noise 제거 또는 모두 구조 손실로 단정하지 않는다.
Frame 0의 가시 rim 223px에서 normal은 174/125/125/223/223개이고 >20°는139/120/32/151/99개다. Union은 188/169/81/167/117개다. FD4는 hole 인접 지원과방향 변화 반응을 함께 크게 잃는다.
Frame 15/45/80은 기존 물리 rim ROI가 0개여서 preservation 비율을 만들지 않았다.Frame 120은 가시 rim 51px 중 tracker가 15px만 남긴다. PCA5/PCA7은 이 15개에서normal을 모두 얻지만 모든 방법의 union>20° 반응은 **6/51px**다. 관측에서 사라진rim을 normal estimator가 복원하지 못한다.
## 6. Mask·occlusion 경계와 normal 유효성
아래 각 cell은 `normal coverage / variation>20° 비율`이며 **둘 다 관측 point가 분모**다.경계 ROI는 서로 또는 실제 구조와 겹칠 수 있어 아래 값 전체를 배타적인 false positive로간주하지 않는다. 원인별 혼동 위험과 invalid 처리 차이를 드러내는 진단값이다.
| 방법 | Peg occlusion | Peg 동일 면 tracker cut | Box occlusion || --- | ---: | ---: | ---: || Baseline | 64.408 / 7.988% | 60.614 / 7.514% | 60.976 / 13.634% || FD 2px | 28.924 / 1.920% | 26.334 / 2.451% | 24.652 / 0.131% || FD 4px | 1.897 / 0.023% | 0.014 / 0% | 0.630 / 0% || PCA 5×5 | 99.269 / 3.640% | 99.158 / 7.409% | 99.936 / 4.086% || PCA 7×7 | 99.686 / 1.394% | 99.689 / 3.489% | 99.969 / 3.863% |
FD4의 낮은 반응은 거의 모든 normal이 소실된 결과를 포함한다. PCA도 모든 threshold에서경계 혼동을 줄이지는 않는다. 동일 면 tracker cut의 >5°/관측 point는 Baseline 18.633%,PCA5 21.074%, PCA7 20.447%로 증가한다. Box occlusion의 >30°는0.410%→3.231%/3.433%로 증가한다. 부분 지원의 편향·남은 경계 혼동을 최종 분류 전에검토해야 하며, 이 집계만으로 각각의 물리 원인을 확정하지 않았다.
정확한 정면 평면에 mask cut 또는 무효 depth hole만 만든 synthetic control에서는 모든방법의 남은 normal variation이 **0°**, jump도 0이었다. Candidate가 관측 경계를무조건 기하 crease로 만드는 것은 아니다. FD는 normal을 더 잃고 PCA는 연결된 부분patch로 관측된 점의 normal을 계산한다.
| 방법 | 전체 Peg normal / variation coverage | 전체 Box normal / variation coverage || --- | ---: | ---: || Baseline | 94.697 / 94.696% | 89.651 / 89.646% || FD 2px | 90.065 / 90.065% | 81.060 / 81.058% || FD 4px | 81.320 / 81.317% | 65.929 / 65.923% || PCA 5×5 | 99.572 / 99.572% | 98.967 / 98.967% || PCA 7×7 | 99.628 / 99.628% | 99.152 / 99.152% |
위 분모는 각각 동일한 관측 point 685,762 / 365,372개다. Coverage는 accuracy를 보장하지않는다. 특히 PCA의 비대칭 부분 지원과 여러 면 혼합을 유효하다는 이유로 정확하다고해석하지 않았다. 작은 조각·6점 미만·공선점은 invalid로 남는다.
## 7. Depth discontinuity와 variation의 상보성
Depth jump는 normal estimator와 독립적이며 모든 방법에서 기존 map과 동일하다.관측 rim의 jump endpoint는 모두 **689개**다.
| 방법 | Variation만 >20° | Jump와 >20° 동시 | Jump만 | Union | Jump에 있지만 normal invalid || --- | ---: | ---: | ---: | ---: | ---: || Baseline | 1700 | 0 | 689 | 2389 | 689 || FD 2px | 1480 | 0 | 689 | 2169 | 689 || FD 4px | 387 | 0 | 689 | 1076 | 689 || PCA 5×5 | 1498 | 406 | 283 | 2187 | 1 || PCA 7×7 | 881 | 387 | 302 | 1570 | 0 |
PCA는 jump 양쪽에서 각각 연결된 patch로 normal을 얻을 수 있다. 이에 따라 jump와variation의 중복이 늘어, variation 개수가 증가해도 union이 늘지 않을 수 있다.Normal invalid인 곳의 낮거나 missing인 variation을 표면이 매끈하다는 증거로 쓰면 안 된다.Jump 자체도 가림·silhouette·grazing 평면을 포함하므로 semantic structural edge를 뜻하지 않는다.모든 ROI에 대해 5/10/20/30°의 variation-only/both/jump-only/union 수를 JSON에 보존했다.
## 8. Synthetic: 정확도 개선과 sharp geometry 약화
Task 02-A의 정면/기울어진 평면, sharp crease, 50mm depth step을 그대로 재사용했다.z0=0.2/0.25/0.35/0.6/1.0m × phase=0/0.25/0.5/0.75mm ×float/floor/nearest × 4종의 **240조건**, 각 조건에서 다섯 방법을 동일하게 비교했다.추가로 slope magnitude 0.2/0.8, azimuth 0/45/90/135°, z0=0.25/0.6m,같은 세 depth 표현의 **48조건**을 비교했다. 합계 **288조건 × 5방법**이다.
아래는 z0=0.25m, phase=0.25mm, slope=(0.4,−0.25)의 고정 평면 ROI다.
| 방법 | 1mm floor error p95 | Variation p95 | >20° / 유효 variation || --- | ---: | ---: | ---: || Baseline | 25.253° | 53.592° | 89.586% || FD 2px | 15.357° | 25.173° | 25.768% || FD 4px | 6.816° | 12.384° | 0% || PCA 5×5 | 3.874° | 6.026° | 0% || PCA 7×7 | 1.526° | 1.899° | 0% |
정면 평면은 모든 방법에서 float/floor 모두 error·variation 0°다. 양자화 전 기울어진평면은 모두 수치 오차 수준이다. 고정 slope의 floor phase sweep에서 PCA5 variation p95는0.2m에서 7.960–8.018°, 1.0m에서 2.184–2.320°다. Baseline은 각각61.204–61.326° / 12.561–12.566°다. Nearest의 원본 수치도 JSON에 있다.
방향에 따라 개선 정도가 다르다. 추가 z0=0.25m floor 방향 조건에서 error p95 범위는Baseline 14.304–38.660°, FD2 10.945–14.322°, FD4 5.460–7.680°,PCA5 3.988–11.310°, PCA7 2.168–5.685°다. PCA5가 모든 평면 방향에서 FD4보다정확하다고 주장하지 않는다.
Sharp crease는 연속 두 평면의 실제 경계다. 기존 6열 band에서 다음과 같이 반응이 약해진다.
| 방법 | Float variation p95 | Float >5 / 10 / 20 / 30° 비율 | 1mm floor variation p95 | Floor >20° || --- | ---: | ---: | ---: | ---: || Baseline | 33.106° | 66.667 / 66.667 / 33.333 / 33.333% | 55.565° | 97.600% || FD 2px | 16.952° | 100 / 66.667 / 0 / 0% | 32.896° | 51.067% || FD 4px | 8.566° | 99.200 / 0 / 0 / 0% | 16.060° | 0% || PCA 5×5 | 21.639° | 87.600 / 66.667 / 33.333 / 0% | 25.182° | 25.733% || PCA 7×7 | 15.765° | 100 / 66.667 / 0 / 0% | 16.836° | 0% |
분모는 동일 band의 관측 point다. FD4는 band 끝의 일부 지원도 잃는다. Normal transition이여러 pixel에 퍼지면 같은 1px 비교에서 angle이 작아지므로, 경계가 기하적으로 모두 사라진것과 특정 threshold 반응이 사라진 것은 구분해야 한다. Float crease에서 FD2/PCA7도20° 반응이 0이라는 점은 양자화 제거만으로 설명할 수 없는 구조 약화다. PCA5 역시 30°반응이 0이다. 20°를 최종 threshold로 고정할 근거는 없다.
50mm step은 모든 방법에서 jump endpoint **500개**가 유지되고 유효 normal의 variation은0이다. 기존 1,500px band의 normal coverage는 Baseline/FD2/FD4/PCA5/PCA7 순서로66.667/33.333/0/100/100%다. FD4 variation은 여기서 **0이 아니라 전부 unavailable**이다.PCA는 단차를 가로지르지 않고 양쪽 평면에서 normal을 구한다. 이 경우 depth jump를 빼면normal variation만으로 경계를 보존했다고 할 수 없다.
## 9. CPU 처리 시간
같은 macOS arm64, Python 3.11.13, NumPy 2.4.6, SciPy 1.17.1에서 CPU로 실행했다.전체 121프레임, 매 frame **Peg+Box 둘 다** 계산했다. 방법별 1회 warmup을 제외하고실행 순서를 frame마다 회전했다. Backprojection은 공통으로 한 번 수행하되 각 total에그 비용을 포함했다. 입력 로딩·GT·지표·그림·파일 저장·다른 estimator는 시간에서 제외했다.
| 방법 | Normal p50 / p95 (ms) | Feature p50 / p95 (ms) | Total p50 / p95 (ms) || --- | ---: | ---: | ---: || Baseline | 3.957 / 5.834 | 8.445 / 9.734 | 19.102 / 22.265 || FD 2px | 2.802 / 5.589 | 8.354 / 9.439 | 17.792 / 21.816 || FD 4px | 3.301 / 6.999 | 8.293 / 9.454 | 18.122 / 22.826 || PCA 5×5 | 21.729 / 63.083 | 8.532 / 9.904 | 36.669 / 80.030 || PCA 7×7 | 35.783 / 109.460 | 8.577 / 9.855 | 50.552 / 126.870 |
Backprojection p50/p95는 7.011/7.714ms다. 합계 percentile은 각 단계 percentile의 합과같지 않다. FD 구현은 관측 중심만 순회하므로 Baseline보다 지원이 커도 이 구현에서는조금 빠를 수 있다. PCA는 patch gathering·연결 탐색·eigendecomposition을 normal 시간에모두 포함한다. 방법별 고도로 최적화된 구현의 이론적 속도 순위나 end-to-end trackerFPS를 주장하지 않는다. 관측 point 수·가림에 따른 시간 차이가 섞여 있다.
## 10. 추천과 남은 실패·미검증 사항
**검토 우선 후보는 PCA 5×5**, CPU 비용을 우선하는 비교 대안은 **FD 2px**다.PCA5는 ep000에서 평면 variation과 오차를 줄이고, 원래 관측을 유지하며, 실제 seam의위치와 작은 crease 반응을 PCA7/FD4보다 잘 남겼다. FD2는 CPU total p95 약 21.8ms지만정면 가까운 합성 기울기에서 양자화 오반응이 더 남고 rim normal 지원을 많이 잃는다.
PCA5 채택을 확정하지 않는다. Rim union 반응은 Baseline보다 낮고, CPU total p95는약 80ms이며, 연속 crease를 혼합하고 일부 mask/occlusion 반응은 남거나 증가한다.PCA7은 평면 지표가 가장 좋지만 작은 crease와 높은 threshold의 실제 seam·rim 손실이더 크다. FD4도 low-noise만 보고 고르기에는 지원 소실과 구조 반응 약화가 크다.
미검증: 독립 episode/seed, 물리 depth 센서 noise·multipath·outlier, 다른 camera/K/해상도,곡면·얇은 구조·gate 이하 작은 단차, temporal 안정성, 부분 지원의 normal uncertainty,GPU/CUDA/MPS 및 PCL 구현의 성능이다. 기존 3px synthetic ROI는 큰 estimator의 전체지원에서 항상 순수 평면을 보장하지 않는다. 원래 ROI를 그대로 보존했으므로 해당 수치는그 고정 ROI에서의 결과이며 안전 ROI로 교체해 유리하게 만들지 않았다. 기존 depth gate의grazing 평면 오검출 한계도 남는다.
최종 estimator·threshold 채택, PCL 설치/binding/비교는 검토 후 결정할 작업으로 남긴다.Corner/Edge/Surface 분류, Structural/Surface Sampling, Intra-object Edge, Graph,Stale Geometry 계약을 구현·수정하지 않았다. Simulator를 새로 실행하지 않았고 이 작업의실행 backend는 CPU NumPy뿐이다.
## 11. 시각화·테스트·Git·보존
[Frame 0 비교](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_comparison.png),[Frame 0 normal validity](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0000_validity.png),[Frame 120 실패 예](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/f0120_comparison.png),[합성 비교](../../visual/results/normal_comparison/4b1c377ae2044344a4f596b249627d89/synthetic.png).0/15/45/80/120의 같은 frame·같은 crop에서 모든 방법을 나란히 배치했다. Plane ROI는 cyan,실제 seam은 orange, 가시 rim은 yellow다. Variation의 NaN은 gray이며 normal validity의dark=invalid, gray=unobserved를 별도로 표시했다. 동일한 0–45° 표시 범위를 사용하고전체 0–180° 수치·histogram은 JSON에 보존했다.
실험은 `ExperimentLogger(team='visual', job_type='evaluate')`, 기존 UUID/project/group,`experiment_artifacts.digests`, 로컬 manifest/sidecar를 재사용했다. `WANDB_MODE=disabled`로수행했고 이 Task는 업로드·게시·commit·stage를 실행하지 않았다.
검증 결과:
- 새 비교 Unit Test **13/13 PASS**, 전체 runtime suite **53/53 PASS**.- Baseline의 원래 `process_geometry` 대비 모든 feature field bitwise 동일성 테스트 PASS.- 선택 5프레임에서 기존 Task 02-A NPZ와 현재 baseline에 대한 **260개 배열 동일성 assert** PASS.- 같은 프레임의 기존 GT ROI와 **120개 동일성 assert** PASS. 원래 집계 JSON과 공유 지표 차이 0개.- 현재 공통 logger/artifact 계약 테스트 **42/42 PASS**. 최초 sandbox 실행의 실제 W&B offline SDK 1건은 `ServicePollForTokenError`로 실패했고, sandbox 밖의 단독 재실행 및 전체 재실행은 PASS다. 실제 원격 W&B/HF 게시 검증은 아니다.- `git diff --check` PASS. Task의 diff는 새 비교 코드·테스트·보고서만 포함한다.
시작 시 기존 파일 1,002개를 hash snapshot으로 보관했다. 이 Task가 기존 파일을 수정하거나삭제한 것은 없다. Baseline·interface·평가 helper 및 기존 실제 데이터·결과 내용 **692개**는hash가 그대로다(`.DS_Store` Finder metadata 제외). 작업 중 별도 커밋 `20b906c`가 공통artifact 관련 8개 파일을 변경했고, 별도 커밋 `42e30e4`가 기존 Task 01/02-A 보고서·`visual/.gitignore` 등을 변경했다. 이 외부 변경은 되돌리지 않았으며 전체 tree가 시작 시점과 같다고 주장하지 않는다.세부 차이는 verification JSON과 preservation snapshot에 구분했다.
평가 시작 commit은 `ae5239bb5a0d5ed418ce8e22c434cce5e5893ef4`, dirty 상태였다.평가 당시 source snapshot은 결과의 `evaluated_source/`에 남겼다. 이후 선택 그림의 NaN을gray로 명확하게 표시하도록 **plotting만** 수정하고 저장 NPZ로 그림을 다시 그렸다.Estimator·ROI·지표를 재계산하거나 threshold를 바꾸지 않았다. 평가 당시/최종 source hash를함께 기록해 dirty tree와 이 시각화 수정의 재현성 한계를 드러냈다.
재현 명령(저장소 root):
```bashMPLCONFIGDIR=/tmp/task02b_mpl WANDB_MODE=disabled .venv/bin/python -m visual.runtime.test.run_normal_comparisonMPLCONFIGDIR=/tmp/task02b_mpl WANDB_MODE=disabled .venv/bin/python -m unittest discover -s visual/runtime/test -p 'test_*.py' -vWANDB_MODE=disabled .venv/bin/python -m unittest tests.test_experiment_logger tests.test_experiment_artifacts -vgit diff --check```
재실행은 새 UUID 디렉터리를 만들며 기존 결과를 덮어쓰지 않는다.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453"""Task 02-B: fixed full-resolution normal comparison, CPU/offline diagnostics.
WANDB_MODE=disabled .venv/bin/python -m visual.runtime.test.run_normal_comparison"""from __future__ import annotations
import argparsefrom dataclasses import fields, replaceimport htmlimport importlib.metadatafrom itertools import chainimport jsonfrom pathlib import Pathimport platformimport sysfrom time import perf_counter
import matplotlibmatplotlib.use('Agg')import matplotlib.pyplot as pltfrom matplotlib.patches import Patchimport numpy as npfrom scipy.ndimage import distance_transform_edt
REPO = Path(__file__).resolve().parents[3]sys.path.insert(0, str(REPO))from utils.experiment_artifacts import digestsfrom utils.experiment_logger import ExperimentLoggerfrom visual.runtime.geometry import ( GeometryFrame, GeometryParameters, build_organized_geometry, compute_geometric_features, estimate_surface_normals, process_geometry,)from visual.runtime.rgbd import BOX, PEG, iter_saved_rgbdfrom visual.runtime.test.normal_diagnostics import ( THRESHOLDS, angular_error, box_primitives, dilate, metrics, oracle, pose_rotation, quantize, rays, real_regions, rim_region, stats, synthetic_case, synthetic_frame,)from visual.runtime.test.normal_estimators import METHODS, finite_difference, local_planefrom visual.runtime.test.run_normal_diagnostics import save_json, summarize_rows
OBJECTS = {'peg': PEG, 'box': BOX}PARAMETERS = GeometryParameters()
def compare(frame, rotation=0): """Shared observed backprojection; separately timed normal + feature passes.
Rotate execution order to reduce fixed ordering effects. Baseline uses the exact existing functions; the standard process_geometry is checked in tests. Timers exclude GT, loading, plotting, saving, metrics and the other methods. """ start = perf_counter() geometry = build_organized_geometry(frame) geometry_ms = (perf_counter()-start)*1000 results = {} order = METHODS[rotation % len(METHODS):]+METHODS[:rotation % len(METHODS)] for method in order: start = perf_counter() if method == 'baseline': normals = {i: estimate_surface_normals(geometry, i, PARAMETERS) for i in geometry.object_masks} elif method.startswith('fd'): normals = {i: finite_difference(geometry, i, int(method[2:]), PARAMETERS) for i in geometry.object_masks} else: normals = {i: local_plane(geometry, i, int(method[3:]), PARAMETERS) for i in geometry.object_masks} after_normals = perf_counter() features = {i: compute_geometric_features(geometry, i, *normals[i], PARAMETERS) for i in geometry.object_masks} end = perf_counter() timings = dict(geometry=geometry_ms, normals=(after_normals-start)*1000, discontinuity_features=(end-after_normals)*1000, total=geometry_ms+(end-start)*1000) results[method] = GeometryFrame(frame.source_frame, frame.camera, frame.frame_idx, frame.timestamp, geometry, features, timings) return results
def response_metrics(feature, region, truth=None): row = metrics(feature, region, truth) point = region & feature.valid_points jump = point & feature.depth_discontinuity row['jump_without_normal'] = int((jump & ~feature.normal_valid).sum()) for t in THRESHOLDS: high = point & feature.normal_variation_valid & (np.rad2deg(feature.normal_variation_rad) > t) row[f'union_{t}'] = int((jump | high).sum()) row[f'variation_only_{t}'] = int((high & ~jump).sum()) row[f'both_{t}'] = int((high & jump).sum()) row[f'jump_only_{t}'] = int((jump & ~high).sum()) return row
class Pool: def __init__(self): self.items = {}
def add(self, key, feature, region, truth=None): item = self.items.setdefault(key, dict(rows=[], variation=[], errors=[])) row = response_metrics(feature, region, truth) item['rows'].append(row) vv = region & feature.valid_points & feature.normal_variation_valid item['variation'].append(np.rad2deg(feature.normal_variation_rad[vv])) if truth is not None: nv = region & feature.valid_points & feature.normal_valid item['errors'].append(angular_error(feature.normals[nv], truth[nv])) return row
def summary(self): result = {} for key, item in self.items.items(): rows = item['rows'] r = summarize_rows(rows, item['variation'], item['errors'] or None) extras = ['jump_without_normal']+[f'{k}_{t}' for t in THRESHOLDS for k in ('union', 'variation_only', 'both', 'jump_only')] for k in extras: r[k] = sum(v[k] for v in rows) r[k+'_fraction_of_region'] = r[k]/r['region_pixels'] if r['region_pixels'] else None r[k+'_fraction_of_points'] = r[k]/r['points'] if r['points'] else None result[key] = r return result
def localization(feature, reference, visible, threshold): """Raster seam endpoint matching, fixed 6px search corridor, no GT input.
Report both directions: nearest-response distance alone can reward planar noise. Precision is deliberately not claimed in this restricted corridor. Missing predictions give zero coverage and no finite distance statistic. """ n = int(reference.sum()) if not n: return dict(reference=0, predictions=0, hit_1=0, hit_2=0, hit_3=0), np.array([]), np.array([]) to_ref = distance_transform_edt(~reference) prediction = (to_ref <= 6) & visible & feature.valid_points & feature.normal_variation_valid prediction &= np.rad2deg(feature.normal_variation_rad) > threshold p = int(prediction.sum()) a = to_ref[prediction] b = distance_transform_edt(~prediction)[reference] if p else np.array([]) row = dict(reference=n, predictions=p, **{f'hit_{t}': int((b <= t).sum()) for t in (1, 2, 3)}) return row, a, b
def localization_summary(items): result = {} for key, values in items.items(): total = {k: sum(v[0][k] for v in values) for k in values[0][0]} total['response_to_seam_px'] = stats(np.concatenate([v[1] for v in values])) total['seam_to_response_px_when_any_prediction'] = stats(np.concatenate([v[2] for v in values])) for t in (1, 2, 3): total[f'coverage_{t}px'] = total[f'hit_{t}']/total['reference'] if total['reference'] else None result[key] = total return result
def real_truth(frame, baseline, gt, camera): s, half = frame.source_frame, gt['peg_half_sizes'] centre = ((gt['box_hole_pose'][s, :3]-gt['box_pose'][s, :3]) @ pose_rotation(gt['box_pose'][s]))[1:] truths = dict(peg=oracle(frame, gt['peg_pose'][s], [(np.zeros(3), half)]), box=oracle(frame, gt['box_pose'][s], box_primitives(float(half[0]), float(gt['box_hole_radii']), centre))) regions, maps = {}, {} for name, object_id in OBJECTS.items(): seg = gt[f'{camera}/seg'][s] == int(gt[f'{name}_id']) regions[name], _, maps[name] = real_regions(frame, baseline, seg, truths[name], object_id, half=half if name == 'peg' else None) if name == 'box': regions[name]['hole_rim'], maps[name]['rim_projection'] = rim_region( frame, truths[name], regions[name]['gt_visible'], gt['box_pose'][s], float(half[0]), float(gt['box_hole_radii']), centre) return truths, regions, maps
def profile(frame, results, seam): """A horizontal cross-section selected from GT seam alone, never responses.""" # Prefer seams with horizontal face transitions to make a horizontal profile. v, u = np.nonzero(seam) if not len(v): return None h, w = seam.shape idx = np.argmin((v-np.median(v))**2+(u-np.median(u))**2) v, u = int(v[idx]), int(u[idx]) x = np.arange(max(0, u-12), min(w, u+13)) row = dict(v=v, reference_u=u, u=x.tolist(), methods={}) for method, result in results.items(): f = result.objects[PEG] a = np.rad2deg(f.normal_variation_rad[v, x]) values = [float(t) if np.isfinite(t) else None for t in a] peak = int(x[np.nanargmax(a)]) if np.isfinite(a).any() else None row['methods'][method] = dict(variation_deg=values, peak_u=peak, peak_offset_px=abs(peak-u) if peak is not None else None, widths_above_deg={str(t): int(np.count_nonzero(a > t)) for t in THRESHOLDS}) return row
def bounds(mask, fallback, margin=8): y, x = np.nonzero(mask if mask.any() else fallback) if not len(x): return (0, mask.shape[1]-1, mask.shape[0]-1, 0) return (max(0, x.min()-margin), min(mask.shape[1]-1, x.max()+margin), min(mask.shape[0]-1, y.max()+margin), max(0, y.min()-margin))
def comparison_plot(output, frame, results, regions, maps): base = results['baseline'] union = base.objects[PEG].valid_points | base.objects[BOX].valid_points views = [('Full view', None, (0, 511, 511, 0)), ('Peg planes / actual seam', PEG, bounds(regions['peg']['gt_visible'], union)), ('Box physical hole rim', BOX, bounds(regions['box']['hole_rim'], regions['box']['gt_visible'], 12))] colors = [('peg', 'plane_interior', '#00ffcc'), ('peg', 'face_seam_2px', '#ff8000'), ('box', 'hole_rim', '#ffff00'), ('peg', 'occlusion_2px', '#ff55cc'), ('peg', 'same_plane_tracker_cut_2px', '#4488ff')] for validity in (False, True): fig, axes = plt.subplots(3, 6, figsize=(22, 12), constrained_layout=True) for axs, (title, oid, extent) in zip(axes, views): axs[0].imshow(frame.rgb) for name, key, color in colors: if regions[name][key].any(): axs[0].contour(regions[name][key], [.5], colors=[color], linewidths=.6) axs[0].set_title(title+'\nGT evaluation regions') for ax, method in zip(axs[1:], METHODS): image = np.full(frame.depth.shape, np.nan) for object_id in OBJECTS.values() if oid is None else (oid,): f = results[method].objects[object_id] if validity: image[f.valid_points] = f.normal_valid[f.valid_points].astype(float) else: image[f.normal_variation_valid] = np.rad2deg(f.normal_variation_rad[f.normal_variation_valid]) cmap = plt.get_cmap('viridis' if validity else 'turbo').with_extremes(bad='#cccccc') im = ax.imshow(image, cmap=cmap, vmin=0, vmax=1 if validity else 45) ax.set_facecolor('#cccccc') ax.set_title(method+(' normal validity' if validity else ' variation (deg)')) for name, key, color in colors[:3]: if (oid is None or oid == OBJECTS[name]) and regions[name][key].any(): ax.contour(regions[name][key], [.5], colors=[color], linewidths=.5) for ax in axs: ax.set(xlim=extent[:2], ylim=extent[2:]); ax.axis('off') fig.colorbar(im, ax=axes[:, 1:], shrink=.6, label='Normal valid (0/1)' if validity else 'Degrees, clipped at 45') fig.suptitle(f'Source {frame.source_frame}: identical source pixels / masks; fixed scales\n' 'Cyan=plane ROI, orange=face seam, yellow=visible physical rim, pink=occlusion, blue=tracker cut. ' + ('Dark=invalid, gray=unobserved.' if validity else 'Gray=unavailable variation; see separate validity panels.')) fig.savefig(output/f'f{frame.source_frame:04d}_{"validity" if validity else "comparison"}.png', dpi=120) plt.close(fig) p = profile(frame, results, maps['peg']['seam']) if p: fig, ax = plt.subplots(figsize=(10, 4), constrained_layout=True) for method, row in p['methods'].items(): ax.plot(np.array(p['u'])-p['reference_u'], row['variation_deg'], '.-', label=method) ax.axvline(0, color='k', ls=':'); ax.legend(ncol=5, fontsize=8) ax.set(xlabel='u offset from selected GT seam pixel', ylabel='Variation (deg)', title=f'Source {frame.source_frame}, v={p["v"]}: same horizontal cross-section') fig.savefig(output/f'f{frame.source_frame:04d}_profile.png', dpi=140); plt.close(fig) return p
def synthetic_experiment(output, intrinsic): rows, primary = [], {} for kind in ('front', 'tilted', 'crease', 'step'): for z in (.2, .25, .35, .6, 1.): for phase in (0., .00025, .0005, .00075): frame, truth, regions = synthetic_case(kind, intrinsic, z0=z, phase_m=phase) for mode in ('float', 'floor', 'nearest'): obs = frame if mode == 'float' else replace(frame, depth=quantize(frame.depth, mode)) results = compare(obs, len(rows)) row = dict(geometry=kind, z0_m=z, phase_m=phase, quantization=mode, methods={}) for method in METHODS: f = results[method].objects[PEG] row['methods'][method] = {k: response_metrics(f, m, truth) for k, m in regions.items()} if kind in ('crease', 'step'): ref = np.zeros(frame.depth.shape, bool); ref[131:381, 255:257] = True row['methods'][method]['localization'] = {} for t in THRESHOLDS: a, b, c = localization(f, ref, frame.masks[PEG], t) row['methods'][method]['localization'][str(t)] = dict( **a, response_to_seam_px=stats(b), seam_to_response_px=stats(c)) rows.append(row) if z == .25 and phase == .00025 and mode in ('float', 'floor'): # Keep only cropped maps for the figure, not dense results. primary[f'{kind}/{mode}'] = {m: np.rad2deg(results[m].objects[PEG].normal_variation_rad[126:386, 226:286]).copy() for m in METHODS} print(f'Synthetic geometry complete: {kind}', flush=True) # Supplementary surface-direction sweep; keep original Task 02-A ROIs above. directions = [] for z in (.25, .6): for slope in (.2, .8): for azimuth in (0, 45, 90, 135): frame, _, regions = synthetic_case('tilted', intrinsic, z0=z, phase_m=.00025) a, b = slope*np.cos(np.deg2rad(azimuth)), slope*np.sin(np.deg2rad(azimuth)) ray = rays(frame.depth.shape, intrinsic) depth = (z+.00025)/(1-a*ray[..., 0]-b*ray[..., 1]) frame = replace(frame, depth=depth.astype(np.float32)) truth = np.broadcast_to(np.array([a, b, -1.])/np.sqrt(a*a+b*b+1), (*depth.shape, 3)) for mode in ('float', 'floor', 'nearest'): obs = frame if mode == 'float' else replace(frame, depth=quantize(frame.depth, mode)) results = compare(obs) directions.append(dict(z0_m=z, slope=slope, azimuth_deg=azimuth, quantization=mode, methods={m: response_metrics(results[m].objects[PEG], regions['plane'], truth) for m in METHODS})) controls = {} frame, truth, _ = synthetic_case('front', intrinsic, z0=.25025) mask = frame.masks[PEG].copy(); mask[:, 256:] = False depth = frame.depth.copy(); depth[240:272, 240:272] = 0 for label, obs in [('mask_cut', replace(frame, masks={PEG: mask})), ('invalid_depth_hole', replace(frame, depth=depth))]: results = compare(obs) controls[label] = {m: response_metrics(results[m].objects[PEG], obs.masks[PEG], truth) for m in METHODS} fig, axes = plt.subplots(len(primary), 5, figsize=(17, 20), constrained_layout=True) for axs, (label, images) in zip(axes, primary.items()): for ax, method in zip(axs, METHODS): ax.imshow(images[method], cmap='turbo', vmin=0, vmax=45) ax.set_title(label+' '+method, fontsize=9); ax.axis('off') fig.suptitle('Same crop: flat false responses and preservation of crease / depth step. Gray/white=missing variation.') fig.savefig(output/'synthetic.png', dpi=120); plt.close(fig) return dict(cases=rows, direction_sweep=directions, controls=controls, original_task02a_conditions=240, supplementary_direction_conditions=len(directions))
def summary_plot(output, summary, local, synthetic): fig, axes = plt.subplots(2, 3, figsize=(16, 9), constrained_layout=True) for method in METHODS: for ax, region in zip(axes[0, :2], ('peg/plane_interior', 'box/hole_rim')): r = summary[f'{method}/{region}'] ax.plot(THRESHOLDS, [r[f'high_{t}_fraction_of_points'] for t in THRESHOLDS], 'o-', label=method) ax.set(title=region, xlabel='Variation threshold (deg)', ylabel='Response / observed points') r = summary[f'{method}/peg/plane_interior'] axes[0, 2].plot(np.arange(2.5, 180, 5), np.array(r['variation_hist_5deg'])/r['variation_valid'], label=method) axes[0, 2].set(title='Plane variation distribution', xlim=(0, 60), xlabel='Degrees', ylabel='Fraction / 5deg bin') for ax, key in zip(axes[1, :2], ('coverage_2px', 'response_to_seam_px')): ys = [local[f'{method}/{t}'][key] for t in THRESHOLDS] if key == 'response_to_seam_px': ys = [v['p95'] for v in ys] ax.plot(THRESHOLDS, ys, 'o-', label=method) ax.set(title='Peg seam '+key, xlabel='Threshold (deg)') cases = [r for r in synthetic['cases'] if r['geometry']=='crease' and r['z0_m']==.25 and r['phase_m']==.00025 and r['quantization']=='float'] r = cases[0]['methods'][method]['edge_band'] axes[1, 2].plot(THRESHOLDS, [r[f'high_{t}_fraction_of_points'] for t in THRESHOLDS], 'o-', label=method) axes[1, 2].set(title='Unquantized synthetic crease (same 6px band)', xlabel='Threshold (deg)', ylabel='Response / observed points') for ax in axes.ravel(): ax.legend(fontsize=8); ax.grid(alpha=.2) fig.savefig(output/'tradeoffs.png', dpi=140); plt.close(fig)
def evaluate(episode_path, masks_path, *, output_root, camera='base_camera', selected=(0, 15, 45, 80, 120), synthetic=True): episode_path, masks_path = Path(episode_path).resolve(), Path(masks_path).resolve() tracking_path = masks_path.with_name('tracking.json') if tracking_path.exists(): tracking = json.loads(tracking_path.read_text()) if tracking.get('camera') not in (None, camera): raise ValueError('camera differs from tracker') original = Path(tracking.get('input') or episode_path) if original.is_file() and original.resolve() != episode_path and digests(original)[1] != digests(episode_path)[1]: raise ValueError('episode differs from tracker') with np.load(episode_path, allow_pickle=False) as archive: required = [f'{camera}/seg', 'peg_id', 'box_id', 'peg_pose', 'box_pose', 'box_hole_pose', 'peg_half_sizes', 'box_hole_radii', 'seed'] missing = set(required)-set(archive.files) if missing: raise ValueError(f'GT missing: {sorted(missing)}') gt = {k: archive[k] for k in required} with np.load(masks_path, allow_pickle=False) as archive: sources = archive['source_frame'] if sources.ndim != 1 or not len(sources) or len(np.unique(sources)) != len(sources): raise ValueError('source_frame must be unique/nonempty') if set(selected)-set(sources.tolist()): raise ValueError('selected frames absent') iterator = iter_saved_rgbd(episode_path, masks_path, camera=camera) first = next(iterator) config = dict(task='02-B', input=str(episode_path), masks=str(masks_path), camera=camera, input_sha256=digests(episode_path)[1], masks_sha256=digests(masks_path)[1], baseline_geometry_sha256=digests(REPO/'visual/runtime/geometry.py')[1], methods=list(METHODS), intrinsic=first.intrinsic.tolist(), parameters=vars(PARAMETERS), selected_sources=list(selected), full_resolution=True, variation_neighbour_spacing_px=1, pca_min_points_including_centre=6, pca_batch_size=4096, pca_rank_relative_tolerance=1e-8, pca_rank_absolute_tolerance_m2=1e-16, gate='original unit-pixel adjacent gate; FD complete axis paths; PCA patch-local centre component', roi_source='Task 02-A unchanged real_regions / rim_region and original synthetic_case', roi_depth_residual_m=.0015, roi_metric_edge_margin_m=.004, roi_raster_erosion_px=3, rim_metric_radius_m=.004, rim_raster_radius_px=2, seam_search_corridor_px=6, high_variation_degrees=list(THRESHOLDS), device='cpu', gpu_executed=False, python=platform.python_version(), numpy=np.__version__, scipy=importlib.metadata.version('scipy'), matplotlib=matplotlib.__version__, platform=platform.platform(), synthetic_executed=synthetic, timing='two objects; one warmup per method; rotated order; shared backprojection charged to every total; no I/O/GT/metrics', feature_inputs='recorded depth/intrinsic/original tracker masks; GT strictly after extraction') config['source_sha256'] = {str(p.relative_to(REPO)): digests(p)[1] for p in ( Path(__file__), Path(__file__).with_name('normal_estimators.py'), Path(__file__).with_name('normal_diagnostics.py'))} with ExperimentLogger(team='visual', config=config, seed=int(gt['seed']), model='task02b_normal_comparison', job_type='evaluate') as logger: output = Path(output_root).resolve()/logger.run_id; output.mkdir(parents=True, exist_ok=False) print(f'Output: {output}', flush=True) synthetic_data = synthetic_experiment(output, first.intrinsic) if synthetic else None compare(first) # Warmup excluded from every reported real latency. pool, records, local = Pool(), [], {} for frame in chain((first,), iterator): results = compare(frame, len(records)) # GT unavailable to estimators. truths, regions, maps = real_truth(frame, results['baseline'], gt, camera) record = dict(source_frame=frame.source_frame, methods={}, paired={}) plane = regions['peg']['plane_interior'] common_n = np.logical_and.reduce([results[m].objects[PEG].normal_valid for m in METHODS]) & plane common_v = np.logical_and.reduce([results[m].objects[PEG].normal_variation_valid for m in METHODS]) & plane for method in METHODS: result = results[method] mr = dict(timings_ms=result.timings_ms, regions={}, seam_localization={}) for name, object_id in OBJECTS.items(): f = result.objects[object_id] for key, region in regions[name].items(): mr['regions'][f'{name}/{key}'] = pool.add(f'{method}/{name}/{key}', f, region, truths[name]['normals'] if key.startswith('plane_') else None) f = result.objects[PEG] for label, region in [('common_normal', common_n), ('common_variation', common_v)]: pool.add(f'{method}/paired/{label}', f, region, truths['peg']['normals']) pair = plane & f.normal_valid & results['baseline'].objects[PEG].normal_valid for which in ('baseline', method) if method != 'baseline' else ('baseline',): pool.add(f'{method}/paired_with_baseline/{which}', results[which].objects[PEG], pair, truths['peg']['normals']) for t in THRESHOLDS: values = localization(f, maps['peg']['seam'], regions['peg']['gt_visible'], t) local.setdefault(f'{method}/{t}', []).append(values) mr['seam_localization'][str(t)] = dict(**values[0], response_to_seam_px=stats(values[1]), seam_to_response_px=stats(values[2])) record['methods'][method] = mr if frame.source_frame in selected: record['profile'] = comparison_plot(output, frame, results, regions, maps) arrays = dict(source_frame=np.array(frame.source_frame), depth_m=frame.depth, intrinsic=frame.intrinsic) for method in METHODS: for name, object_id in OBJECTS.items(): f = results[method].objects[object_id] for field in fields(f): arrays[f'{method}/{name}/{field.name}'] = getattr(f, field.name) for name in OBJECTS: arrays.update({f'evaluation/{name}/{k}': v for k, v in regions[name].items()}) for k in ('face', 'normals'): arrays[f'evaluation/{name}/{k}'] = truths[name][k] arrays['evaluation/peg/seam_endpoints'] = maps['peg']['seam'] np.savez_compressed(output/f'f{frame.source_frame:04d}.npz', **arrays) records.append(record) if len(records) == 1 or len(records) % 20 == 0: print(f'Real frames: {len(records)}/{len(sources)}', flush=True) summary, ls = pool.summary(), localization_summary(local) latency = {m: {k: stats([r['methods'][m]['timings_ms'][k] for r in records]) for k in ('geometry', 'normals', 'discontinuity_features', 'total')} for m in METHODS} data = dict(run_id=logger.run_id, config=config, git_commit=logger.metadata['git_commit'], git_dirty=logger.metadata['git_dirty'], evaluated_frames=len(records), summary=summary, seam_localization=ls, latency_ms=latency, synthetic=synthetic_data, frames=records) save_json(output/'comparison.json', data) if synthetic: summary_plot(output, summary, ls, synthetic_data) images = ['tradeoffs.png', 'synthetic.png']+[f'f{s:04d}_{k}.png' for s in selected for k in ('comparison', 'validity', 'profile')] body = ''.join(f'<p><a href="{p}"><img src="{p}" alt="{p}"></a></p>' for p in images if (output/p).exists()) (output/'comparison.html').write_text(f'''<!doctype html><html lang="en"><meta charset="utf-8"><title>Task 02-B</title><style>body{{font:15px system-ui;max-width:1800px;margin:24px auto}}img{{width:100%}}pre{{white-space:pre-wrap}}</style><h1>Task 02-B — quantization-robust normals</h1><p>Run {logger.run_id}; {len(records)} ep000 frames. CPU NumPy.<a href="comparison.json">Complete counts, distributions, paired metrics, threshold sweeps and latency</a>.</p><p>Baseline unchanged. FD2/FD4 and PCA5/PCA7 preserve original resolution and use the same 1px variation comparison.GT is evaluation-only. Fixed Task 02-A regions and 5/10/20/30 degree thresholds. Boundary bands may overlap.Seam distance statistics use a fixed 6px corridor, alongside 1/2/3px coverage and planar false responses.Pooled pixel-frame statistics are temporally dependent. No final estimator/threshold adopted.</p>{body}<details><summary>Configuration</summary><pre>{html.escape(json.dumps(config, indent=2))}</pre></details></html>''', encoding='utf-8') for p in sorted(output.iterdir()): logger.link_output(p, kind='metrics' if p.suffix=='.json' else None) logger.log(summary, prefix='eval/task02b'); logger.log(latency, prefix='eval/task02b/latency_ms') logger.record(dataset_sha256=config['input_sha256'], masks_sha256=config['masks_sha256'], evaluation_device='cpu', evaluated_frames=len(records), gpu_executed=False) return output
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--input', type=Path, default=REPO/'visual/data/step2/ep000.npz') parser.add_argument('--masks', type=Path, default=REPO/'visual/results/runtime_tracking/ep000/masks.npz') parser.add_argument('--camera', default='base_camera') parser.add_argument('--out', type=Path, default=REPO/'visual/results/normal_comparison') args = parser.parse_args() print(evaluate(args.input, args.masks, output_root=args.out, camera=args.camera))
if __name__ == '__main__': main()123version https://git-lfs.github.com/spec/v1oid sha256:b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3size 116434894123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071diff --git a/visual/runtime/test/structural_edges.py b/visual/runtime/test/structural_edges.pynew file mode 100644index 0000000..5800b8b--- /dev/null+++ b/visual/runtime/test/structural_edges.py@@ -0,0 +1,126 @@+"""Task 02-C observation-only comparison, never called by production runtime.++Sparse raster-pair evidence is NOT graph connectivity or a semantic edge class.+Depth order only indicates potential occluding/occluded sides. No GT or RGB is+accepted. Thresholding retains overlapping causes instead of resolving them.+"""+from dataclasses import dataclass+from time import perf_counter++import numpy as np++from visual.runtime.geometry import (+ GeometryFrame, GeometryParameters, build_organized_geometry,+ compute_geometric_features, estimate_surface_normals,+)+from visual.runtime.test.normal_estimators import finite_difference, local_plane++METHODS = ('baseline', 'fd2', 'pca5')+THRESHOLDS = (2, 5, 10, 15, 20, 25, 30, 40, 60, 90, 180)+PARAMETERS = GeometryParameters()+++@dataclass(frozen=True)+class PairEvidence:+ shape: tuple+ pixels: np.ndarray # [P,2] source flat indices, right/down neighbour once+ supported: np.ndarray # [P,2] unambiguous observed object endpoint+ mask_boundary: np.ndarray+ invalid_depth_boundary: np.ndarray # XOR depth validity, not zero-depth jump+ overlap: np.ndarray # [P,2], ambiguous tracker membership+ signed_depth_delta_m: np.ndarray # z(second)-z(first), NaN unless both valid+ depth_jump: np.ndarray+ normal_angle_deg: np.ndarray # NaN unless both normals available+ near_endpoint: np.ndarray # local pair endpoint 0/1, -1 unless a depth jump+ far_endpoint: np.ndarray++ def endpoint_mask(self, selected, side=None):+ result = np.zeros(np.prod(self.shape), bool)+ for k in (0, 1):+ keep = selected & self.supported[:, k]+ if side is not None:+ keep &= side == k+ result[self.pixels[keep, k]] = True+ return result.reshape(self.shape)++ def candidates(self, threshold):+ if not np.isfinite(threshold) or threshold < 0:+ raise ValueError('angle threshold must be finite and nonnegative')+ orientation = self.endpoint_mask(self.normal_angle_deg > threshold)+ depth = self.endpoint_mask(self.depth_jump)+ return dict(orientation=orientation, depth=depth, union=orientation | depth,+ occluding=self.endpoint_mask(self.depth_jump, self.near_endpoint),+ occluded=self.endpoint_mask(self.depth_jump, self.far_endpoint),+ invalid=self.endpoint_mask(self.invalid_depth_boundary),+ mask=self.endpoint_mask(self.mask_boundary))+++def pair_evidence(geometry, object_id, normals, normal_valid, parameters=PARAMETERS):+ """Preserve all adjacent pairs touching the raw object mask, even invalids.++ Mask transition, invalid depth and overlap flags are independent. An external+ finite-depth neighbour is retained to determine jump direction. Its XYZ is+ never included as an object normal support or an object candidate point.+ """+ shape = geometry.valid_depth.shape+ indices = np.arange(np.prod(shape), dtype=np.int32).reshape(shape)+ mask = geometry.object_masks[object_id]+ support = geometry.observed_mask(object_id)+ parts = []+ for a, b in (((slice(None), slice(None, -1)), (slice(None), slice(1, None))),+ ((slice(None, -1), slice(None)), (slice(1, None), slice(None)))):+ keep = mask[a] | mask[b]+ parts.append(np.column_stack((indices[a][keep], indices[b][keep])))+ pixels = np.concatenate(parts)+ valid = geometry.valid_depth.ravel()[pixels]+ both = valid.all(1)+ z = geometry.xyz[..., 2].ravel()[pixels]+ delta = np.full(len(pixels), np.nan, np.float32)+ delta[both] = z[both, 1]-z[both, 0]+ jump = np.zeros(len(pixels), bool)+ jump[both] = np.abs(delta[both]) > (parameters.depth_jump_abs_m+ + parameters.depth_jump_rel*np.min(z[both], axis=1))+ nv = normal_valid.ravel()[pixels].all(1)+ angles = np.full(len(pixels), np.nan, np.float32)+ n = normals.reshape(-1, 3)[pixels[nv]]+ angles[nv] = np.rad2deg(np.arctan2(np.linalg.norm(np.cross(n[:, 0], n[:, 1]), axis=1),+ np.einsum('ij,ij->i', n[:, 0], n[:, 1])))+ near = np.full(len(pixels), -1, np.int8)+ near[jump] = np.argmin(z[jump], axis=1).astype(np.int8)+ far = np.where(jump, 1-near, -1).astype(np.int8)+ return PairEvidence(shape, pixels, support.ravel()[pixels],+ np.logical_xor(mask.ravel()[pixels[:, 0]], mask.ravel()[pixels[:, 1]]),+ valid[:, 0] ^ valid[:, 1], geometry.overlap_mask.ravel()[pixels],+ delta, jump, angles, near, far)+++def compare(frame, rotation=0):+ start = perf_counter()+ geometry = build_organized_geometry(frame)+ geometry_ms = (perf_counter()-start)*1000+ results, evidence = {}, {}+ order = METHODS[rotation % 3:]+METHODS[:rotation % 3]+ for method in order:+ start = perf_counter()+ if method == 'baseline':+ normals = {i: estimate_surface_normals(geometry, i, PARAMETERS) for i in geometry.object_masks}+ elif method == 'fd2':+ normals = {i: finite_difference(geometry, i, 2, PARAMETERS) for i in geometry.object_masks}+ else:+ normals = {i: local_plane(geometry, i, 5, PARAMETERS) for i in geometry.object_masks}+ after_normal = perf_counter()+ features = {i: compute_geometric_features(geometry, i, *normals[i], PARAMETERS) for i in normals}+ after_features = perf_counter()+ evidence[method] = {i: pair_evidence(geometry, i, *normals[i]) for i in normals}+ after_pairs = perf_counter()+ # One illustrative threshold pass; the evaluation sweep is excluded.+ for pair in evidence[method].values():+ pair.candidates(20)+ end = perf_counter()+ timing = dict(geometry=geometry_ms, normals=(after_normal-start)*1000,+ features=(after_features-after_normal)*1000,+ pair_evidence=(after_pairs-after_features)*1000,+ threshold=(end-after_pairs)*1000, total=geometry_ms+(end-start)*1000)+ results[method] = GeometryFrame(frame.source_frame, frame.camera, frame.frame_idx,+ frame.timestamp, geometry, features, timing)+ return results, evidencediff --git a/visual/runtime/test/run_structural_edges.py b/visual/runtime/test/run_structural_edges.pynew file mode 100644index 0000000..56d6d61--- /dev/null+++ b/visual/runtime/test/run_structural_edges.py@@ -0,0 +1,411 @@+"""Task 02-C offline CPU sweep. Run from repository root with WANDB_MODE=disabled.++GT is read by this evaluator only, after observation-only extraction. No changes+to the production extractor, representation, tracker, sampling or graph modules.+"""+import argparse+from dataclasses import fields+import ctypes.util+import glob+import importlib.util+import importlib.metadata+import json+from pathlib import Path+import platform+import shutil+import sys++import matplotlib+matplotlib.use('Agg')+import matplotlib.pyplot as plt+from matplotlib.patches import Patch+import numpy as np+from scipy.sparse import csr_matrix+from scipy.sparse.csgraph import maximum_bipartite_matching+from scipy.spatial import cKDTree++REPO = Path(__file__).resolve().parents[3]+sys.path.insert(0, str(REPO))+from utils.experiment_artifacts import digests+from utils.experiment_logger import ExperimentLogger+from visual.runtime.rgbd import PEG, BOX, iter_saved_rgbd+from visual.runtime.test.normal_diagnostics import erode, dilate, endpoints, pose_rotation, rays, stats+from visual.runtime.test.run_normal_comparison import real_truth, bounds+from visual.runtime.test.run_normal_diagnostics import save_json+from visual.runtime.test.structural_edges import METHODS, THRESHOLDS, compare++OBJECTS = {'peg': PEG, 'box': BOX}+LABELS = {'baseline': 'A: baseline', 'fd2': 'B: FD 2px', 'pca5': 'C: PCA 5x5'}+TOL_PX, TOL_M = 2., .003+++def pcl_status():+ return dict(status='NOT RUN', python_modules={m: importlib.util.find_spec(m) is not None for m in ('pcl', 'pclpy')},+ libraries={m: ctypes.util.find_library(m) for m in ('pcl_common', 'pcl_features')},+ headers=[p for root in ('/opt/homebrew/include', '/usr/local/include', '/usr/include')+ for p in glob.glob(root+'/pcl*/pcl/features/organized_edge_detection.h')],+ pkg_config=shutil.which('pkg-config'), installed_or_built=False, rgb_canny=False,+ reason='No usable PCL dependency on this host; no installation or binding attempted')+++def raster_reference(mask, truth, intrinsic):+ vu = np.column_stack(np.nonzero(mask))+ return vu[:, ::-1].astype(float), (rays(mask.shape, intrinsic)*truth['depth'][..., None])[mask]+++def rim_reference(frame, gt, truth, legacy_region):+ """Physical line samples, visibility restricted by the unchanged Task02-A ROI.++ At most one reference per rounded projected pixel. Samples must be within+ 1.5px of a GT-visible legacy rim surface AND within its 4mm physical gate.+ This is evaluation discretization, not sampling predicted structural points.+ """+ if not legacy_region.any():+ return np.empty((0, 2)), np.empty((0, 3))+ s = frame.source_frame+ pose = gt['box_pose'][s]+ rot = pose_rotation(pose)+ centre = ((gt['box_hole_pose'][s, :3]-pose[:3]) @ rot)[1:]+ radius, half = float(gt['box_hole_radii']), float(gt['peg_half_sizes'][0])+ segments = []+ for axis, other, c, oc in ((1, 2, centre[0], centre[1]), (2, 1, centre[1], centre[0])):+ for sign in (-1, 1):+ p = np.zeros((2001, 3)); p[:, 0] = np.sign(truth['origin'][0])*half+ p[:, axis] = c+sign*radius+ p[:, other] = np.linspace(oc-radius, oc+radius, len(p))+ segments.append(p)+ world_to_cv = np.linalg.inv(frame.cam2world)+ xyz = (np.concatenate(segments) @ rot.T+pose[:3]) @ world_to_cv[:3, :3].T+world_to_cv[:3, 3]+ xyz = xyz[xyz[:, 2] > 0]+ uv = xyz[:, :2]/xyz[:, 2:]*np.diag(frame.intrinsic)[:2]+frame.intrinsic[:2, 2]-.5+ visible_uv, visible_xyz = raster_reference(legacy_region, truth, frame.intrinsic)+ distance, nearest = cKDTree(visible_uv).query(uv)+ keep = (distance <= 1.5) & (np.linalg.norm(xyz-visible_xyz[nearest], axis=1) <= .004)+ uv, xyz = uv[keep], xyz[keep]+ if not len(uv):+ return uv, xyz+ rounded = np.rint(uv).astype(int)+ # Choose the subpixel line point nearest its raster centre, deterministically.+ order = np.argsort(np.linalg.norm(uv-rounded, axis=1), kind='stable')+ _, unique = np.unique(rounded[order], axis=0, return_index=True)+ indices = order[unique]+ return uv[indices], xyz[indices]+++class Matcher:+ """Whole observed support, no GT corridor restriction on predictions.++ Tolerance matches require the SAME reference/prediction pair to satisfy both+ <=2px AND <=3mm. One-to-one maximum matching penalizes thick duplicate bands.+ Nearest 2D and nearest 3D errors are separately reported in both directions.+ """+ def __init__(self, geometry, object_id, reference):+ self.support = np.flatnonzero(geometry.observed_mask(object_id))+ vu = np.column_stack(np.unravel_index(self.support, geometry.valid_depth.shape))+ self.uv, self.xyz = vu[:, ::-1], geometry.xyz.reshape(-1, 3)[self.support]+ self.ref_uv, self.ref_xyz = reference+ self.nref = len(self.ref_uv)+ self.near2 = np.full(len(vu), np.nan)+ self.near3 = self.near2.copy()+ if len(vu) and self.nref:+ self.near2 = cKDTree(self.ref_uv).query(self.uv)[0]+ self.near3 = cKDTree(self.ref_xyz).query(self.xyz)[0]*1000+ matrix = cKDTree(self.uv).sparse_distance_matrix(cKDTree(self.ref_uv), TOL_PX, output_type='coo_matrix')+ ok = np.linalg.norm(self.xyz[matrix.row]-self.ref_xyz[matrix.col], axis=1) <= TOL_M+ self.adjacency = csr_matrix((np.ones(ok.sum(), bool), (matrix.row[ok], matrix.col[ok])), shape=(len(vu), self.nref))+ else:+ self.adjacency = csr_matrix((len(vu), self.nref), dtype=bool)++ def score(self, prediction, distances=False):+ choose = prediction.ravel()[self.support]+ adjacency = self.adjacency[choose]+ count = int(choose.sum())+ tp = int(np.count_nonzero(adjacency.getnnz(axis=1)))+ hit = int(np.count_nonzero(adjacency.getnnz(axis=0)))+ one = int(np.count_nonzero(maximum_bipartite_matching(adjacency, perm_type='column') >= 0)) if count and self.nref else 0+ row = dict(candidates=count, references=self.nref, matched_candidates=tp, covered_references=hit, one_to_one=one,+ candidates_without_visible_reference=count if not self.nref else 0)+ arrays = {}+ if distances:+ arrays = dict(candidate_to_gt_px=self.near2[choose], candidate_to_gt_mm=self.near3[choose])+ arrays['gt_to_candidate_px'] = cKDTree(self.uv[choose]).query(self.ref_uv)[0] if count and self.nref else np.empty(0)+ arrays['gt_to_candidate_mm'] = cKDTree(self.xyz[choose]).query(self.ref_xyz)[0]*1000 if count and self.nref else np.empty(0)+ row['location'] = {k: stats(v) for k, v in arrays.items()}+ return row, arrays+++def ratios(row):+ n, r = row['candidates'], row['references']+ row.update(precision=row['matched_candidates']/n if n else None,+ recall=row['covered_references']/r if r else None,+ one_to_one_precision=row['one_to_one']/n if n else None,+ one_to_one_recall=row['one_to_one']/r if r else None,+ one_to_one_f1=2*row['one_to_one']/(n+r) if n+r else None)+ return row+++class Pool:+ def __init__(self):+ self.items = {}++ def add(self, key, row, arrays):+ item = self.items.setdefault(key, dict(counts={k: 0 for k in row if k != 'location'}, arrays={}))+ for k, v in row.items():+ if k != 'location': item['counts'][k] += v+ for k, v in arrays.items(): item['arrays'].setdefault(k, []).append(v.astype(np.float32))++ def summary(self):+ return {k: dict(**ratios(item['counts']), location={a: stats(np.concatenate(v)) for a, v in item['arrays'].items()})+ for k, item in self.items.items()}+++def negative_regions(regions, maps, reference, shape):+ # Exclude known physical structure neighbourhood before calling a boundary FP.+ raster = np.zeros(shape, bool)+ uv = np.rint(reference[0]).astype(int)+ inside = (uv[:, 0] >= 0) & (uv[:, 0] < shape[1]) & (uv[:, 1] >= 0) & (uv[:, 1] < shape[0])+ uv = uv[inside]; raster[uv[:, 1], uv[:, 0]] = True+ away = ~dilate(raster, 3)+ result = {k: regions[k] & away for k in ('silhouette_2px', 'occlusion_2px', 'same_plane_tracker_cut_2px', 'invalid_depth_2px')}+ if 'robot_occlusion_2px' in regions: result['robot_occlusion_2px'] = regions['robot_occlusion_2px'] & away+ result['contamination'] = regions['contamination'] & away+ if 'plane_interior' in regions: result['plane_interior'] = regions['plane_interior'] & away+ return result+++def comparison_plot(output, frame, evidence, regions, maps, references):+ union_mask = frame.masks[PEG] | frame.masks[BOX]+ views = [('Full image', None, (0, frame.depth.shape[1]-1, frame.depth.shape[0]-1, 0)),+ ('Peg', PEG, bounds(regions['peg']['gt_visible'], union_mask)),+ ('Box / physical hole entrance', BOX, bounds(regions['box']['hole_rim'], regions['box']['gt_visible'], 12))]+ colors = dict(orientation='#ff3939', depth='#ffba18', occluding='#d737ef', occluded='#29c5ff', invalid='#ffffff', mask='#67e535')+ fig, axes = plt.subplots(3, 4, figsize=(19, 13), constrained_layout=True)+ for row, (view, oid, extent) in enumerate(views):+ for col in range(4):+ ax = axes[row, col]; ax.imshow(frame.rgb)+ if col == 0:+ for name in OBJECTS:+ uv = references[name]['all'][0]+ ax.scatter(uv[:, 0], uv[:, 1], s=3, c='#ffff00', linewidths=0)+ for cause, color in (('occlusion', '#d737ef'), ('cut', '#67e535')):+ v, u = np.nonzero(maps[name][cause]); ax.scatter(u, v, s=3, c=color, linewidths=0)+ ax.set_title(view+' | GT only (yellow structure)')+ else:+ method = METHODS[col-1]+ for i in OBJECTS.values() if oid is None else (oid,):+ candidates = evidence[method][i].candidates(20)+ for cause, color in colors.items():+ v, u = np.nonzero(candidates[cause])+ if cause in ('depth', 'mask'):+ ax.scatter(u, v, s=14 if cause == 'depth' else 8, marker='s' if cause == 'depth' else 'o',+ facecolors='none', edgecolors=color, linewidths=.45)+ else:+ ax.scatter(u, v, s=3, c=color, linewidths=0)+ ax.set_title(LABELS[method]+' | angle >20 deg')+ ax.set_xlim(extent[:2]); ax.set_ylim(extent[2:]); ax.set_aspect('equal')+ ax.set_xlabel('source u (px)'); ax.set_ylabel('source v (px)')+ fig.legend(handles=[Patch(color=c, label=k) for k, c in colors.items()], loc='outside lower center', ncol=6)+ fig.suptitle(f'Source {frame.source_frame}: same crop / CV source pixels. Colours are diagnostic; causes overlap.\nNear/far depth order is potential occlusion only; mask/occlusion is not a structural label.')+ fig.savefig(output/f'f{frame.source_frame:04d}_comparison.png', dpi=135); plt.close(fig)+++def sweep_plot(output, summary):+ fig, axes = plt.subplots(2, 3, figsize=(17, 10), constrained_layout=True)+ for method in METHODS:+ for channel, style in (('union', '-'), ('orientation', '--')):+ rows = [summary[f'{method}/{channel}/{t}/all'] for t in THRESHOLDS]+ axes[0, 0].plot([r['recall'] for r in rows], [r['precision'] for r in rows], style, marker='.', label=LABELS[method]+' '+channel)+ axes[0, 1].plot([r['one_to_one_recall'] for r in rows], [r['one_to_one_precision'] for r in rows], style, marker='.')+ rows = [summary[f'{method}/union/{t}/all'] for t in THRESHOLDS]+ axes[0, 2].plot(THRESHOLDS[:-1], [r['candidates'] for r in rows[:-1]], marker='.', label=LABELS[method])+ for ax, key in zip(axes[1], ('peg_seam', 'box_rim', 'peg_plane')):+ if key == 'peg_plane':+ y = [summary[f'{method}/union/{t}/negative/peg/plane_interior']['rate'] for t in THRESHOLDS]+ else:+ y = [summary[f'{method}/union/{t}/{key}']['recall'] for t in THRESHOLDS]+ ax.plot(THRESHOLDS[:-1], y[:-1], marker='.', label=LABELS[method]); ax.set_title(key); ax.set_xlabel('angle threshold (deg)')+ axes[0, 0].set(xlabel='coverage / recall', ylabel='candidate precision', title='Whole support: <=2px AND <=3mm')+ axes[0, 1].set(xlabel='one-to-one recall', ylabel='one-to-one precision', title='Maximum one-to-one matching')+ axes[0, 2].set(xlabel='angle threshold (deg)', ylabel='candidates / 121 frames', title='Density (depth-only at 180 in JSON)')+ for ax in axes.flat: ax.grid(alpha=.25)+ axes[0, 0].legend(fontsize=8); axes[0, 2].legend(fontsize=8)+ fig.savefig(output/'tradeoffs.png', dpi=140); plt.close(fig)+++def density_plot(output, density, shape):+ fig, axes = plt.subplots(2, 3, figsize=(14, 8), constrained_layout=True)+ vmax = max(max(v['grid_8x8'][i][j] for i in range(8) for j in range(8))+ for k, v in density.items() if '/union/20/' in k)+ for row, name in enumerate(OBJECTS):+ for col, method in enumerate(METHODS):+ d = density[f'{method}/union/20/{name}']; ax = axes[row, col]+ im = ax.imshow(d['grid_8x8'], extent=(0, shape[1], shape[0], 0), vmin=0, vmax=vmax, cmap='magma')+ fraction = f'{d["fraction"]:.1%}' if d['fraction'] is not None else 'no observation'+ ax.set(title=f'{LABELS[method]} {name}: {fraction}', xlabel='source u (px)', ylabel='source v (px)')+ fig.colorbar(im, ax=axes, label='Candidate pixel-frames per image tile (8x8 grid); same scale')+ fig.savefig(output/'density.png', dpi=140); plt.close(fig)+++def evaluate(episode_path, masks_path, output_root, camera='base_camera', selected=(0, 15, 45, 80, 120)):+ episode_path, masks_path = Path(episode_path).resolve(), Path(masks_path).resolve()+ with np.load(episode_path, allow_pickle=False) as archive:+ required = [f'{camera}/seg', 'peg_id', 'box_id', 'peg_pose', 'box_pose', 'box_hole_pose', 'peg_half_sizes', 'box_hole_radii', 'seed']+ if set(required)-set(archive.files): raise ValueError('GT fields missing')+ gt = {k: archive[k] for k in required}+ with np.load(masks_path, allow_pickle=False) as archive: sources = archive['source_frame']+ if not np.array_equal(sources, np.arange(len(gt[f'{camera}/seg']))):+ raise ValueError('Task02-C requires every episode frame exactly once in source order')+ tracker_meta = masks_path.with_name('tracking.json')+ if tracker_meta.exists():+ track = json.loads(tracker_meta.read_text())+ if track.get('camera', camera) != camera: raise ValueError('tracker camera mismatch')+ track_input = Path(track.get('input') or episode_path)+ if track_input.exists() and digests(track_input)[1] != digests(episode_path)[1]: raise ValueError('tracker episode mismatch')+ segmap_path = episode_path.with_name('segmentation_id_map.json')+ segmap = json.loads(segmap_path.read_text()) if segmap_path.exists() else {}+ robot_ids = [int(k) for k, v in segmap.items() if v.startswith('panda_')]+ config = dict(task='02-C', input=str(episode_path), masks=str(masks_path), camera=camera,+ input_sha256=digests(episode_path)[1], masks_sha256=digests(masks_path)[1],+ methods=METHODS, angle_thresholds_deg=THRESHOLDS, depth_gate_abs_m=.01, depth_gate_rel=.02,+ tolerance_px=TOL_PX, tolerance_m=TOL_M, pcl=pcl_status(), seed=int(gt['seed']),+ device='cpu', python=platform.python_version(), numpy=np.__version__, platform=platform.platform(),+ scipy=importlib.metadata.version('scipy'), matplotlib=matplotlib.__version__,+ rgb_canny=False, gt_detector_input=False, full_resolution=True,+ robot_segmentation_ids=robot_ids, segmentation_map_sha256=digests(segmap_path)[1] if segmap else None,+ selected_sources=selected, timing='warmup excluded; rotated order; both objects; shared XYZ charged to each; no I/O, GT, sweep or plotting',+ source_sha256={str(p.relative_to(REPO)): digests(p)[1] for p in [Path(__file__), Path(__file__).with_name('structural_edges.py'),+ REPO/'visual/runtime/geometry.py', Path(__file__).with_name('normal_estimators.py'),+ Path(__file__).with_name('normal_diagnostics.py'), Path(__file__).with_name('run_normal_comparison.py')]})+ with ExperimentLogger(team='visual', config=config, seed=int(gt['seed']), model='task02c_structural_edges', job_type='evaluate') as logger:+ output = Path(output_root).resolve()/logger.run_id; output.mkdir(parents=True, exist_ok=False)+ print('Output:', output, flush=True)+ for source in config['source_sha256']:+ destination = output/'evaluated_source'/source+ destination.parent.mkdir(parents=True, exist_ok=True)+ shutil.copyfile(REPO/source, destination)+ pool, negative, records, density, legacy_rim = Pool(), {}, [], {}, {}+ iterator = iter_saved_rgbd(episode_path, masks_path, camera=camera)+ for index, frame in enumerate(iterator):+ if index == 0: compare(frame) # one warmup per method+ results, evidence = compare(frame, index)+ truths, regions, maps = real_truth(frame, results['baseline'], gt, camera)+ for name in OBJECTS:+ robot_occluder = (np.isin(gt[f'{camera}/seg'][frame.source_frame], robot_ids)+ & np.isfinite(truths[name]['depth'])+ & results['baseline'].geometry.valid_depth+ & (frame.depth < truths[name]['depth']-.0015))+ regions[name]['robot_occlusion_2px'] = (dilate(endpoints(regions[name]['gt_visible'], robot_occluder), 2)+ & regions[name]['gt_visible'])+ references, matchers, negatives = {}, {}, {}+ record = dict(source_frame=frame.source_frame, methods={}, gt={}, observations={})+ for name, oid in OBJECTS.items():+ references[name] = {'seam': raster_reference(maps[name]['seam'], truths[name], frame.intrinsic)}+ if name == 'box':+ references[name]['rim'] = rim_reference(frame, gt, truths[name], regions[name]['hole_rim'])+ # Additional box plane control; fixed face-wise erosion, no new GT detector input.+ regions[name]['plane_interior'] = np.logical_or.reduce([erode(regions[name]['gt_visible'] & (truths[name]['face'] == f), 3) for f in range(6)])+ regions[name]['plane_interior'] &= ~dilate(regions[name]['hole_rim'], 4)+ references[name]['all'] = tuple(np.concatenate([r[k] for r in references[name].values()]) for k in (0, 1))+ _, unique = np.unique(np.rint(references[name]['all'][0]).astype(int), axis=0, return_index=True)+ references[name]['all'] = tuple(x[unique] for x in references[name]['all'])+ matchers[name] = {key: Matcher(results['baseline'].geometry, oid, ref) for key, ref in references[name].items()}+ negatives[name] = negative_regions(regions[name], maps[name], references[name]['all'], frame.depth.shape)+ record['gt'][name] = {k: len(v[0]) for k, v in references[name].items()}+ if name == 'box': record['gt'][name]['legacy_rim_band'] = int(regions[name]['hole_rim'].sum())+ f = results['baseline'].objects[oid]+ record['observations'][name] = dict(mask=int(f.object_mask.sum()), points=int(f.valid_points.sum()),+ gt_visible=int(regions[name]['gt_visible'].sum()), contamination=int((f.valid_points & regions[name]['contamination']).sum()),+ legacy_rim_observed=int((f.valid_points & regions[name].get('hole_rim', np.zeros_like(f.valid_points))).sum()))+ for method in METHODS:+ record['methods'][method] = dict(timing_ms=results[method].timings_ms, thresholds={})+ for threshold in THRESHOLDS:+ detail = {}+ for name, oid in OBJECTS.items():+ candidates = evidence[method][oid].candidates(threshold)+ f = results[method].objects[oid]+ # Full-raster equivalence to the requested original union.+ expected = f.valid_points & (f.depth_discontinuity | (np.rad2deg(f.normal_variation_rad) > threshold))+ if not np.array_equal(candidates['union'], expected): raise AssertionError('pair union differs from original feature maps')+ for channel in ('union', 'orientation'):+ prediction = candidates[channel]+ key = f'{method}/{channel}/{threshold}'+ for target, matcher in matchers[name].items():+ row, arrays = matcher.score(prediction, distances=threshold in (10, 20, 30))+ label = name+'_'+target if target != 'all' else 'all'+ pool.add(key+'/'+label, row, arrays)+ detail[name+'/'+target+'/'+channel] = row+ if name == 'box':+ lr = legacy_rim.setdefault(key, dict(gt_band=0, observed_band=0, detected_band=0))+ rim = regions[name]['hole_rim']+ lr['gt_band'] += int(rim.sum()); lr['observed_band'] += int((rim & f.valid_points).sum())+ lr['detected_band'] += int((rim & prediction).sum())+ for region, mask in negatives[name].items():+ supported = mask & f.valid_points+ nr = negative.setdefault(key+'/negative/'+name+'/'+region, dict(points=0, candidates=0))+ nr['points'] += int(supported.sum()); nr['candidates'] += int((supported & prediction).sum())+ detail[name+'/negative/'+region+'/'+channel] = dict(points=int(supported.sum()), candidates=int((supported & prediction).sum()))+ v, u = np.nonzero(prediction)+ grid = np.histogram2d(v, u, bins=(8, 8), range=((0, frame.depth.shape[0]), (0, frame.depth.shape[1])))[0].astype(int)+ den = density.setdefault(key+'/'+name, dict(observed=0, candidates=0, grid_8x8=np.zeros((8, 8), int)))+ den['observed'] += int(f.valid_points.sum()); den['candidates'] += len(v); den['grid_8x8'] += grid+ if threshold == 20:+ detail[name+'/causes'] = {k: int(v.sum()) for k, v in candidates.items()}+ record['methods'][method]['thresholds'][str(threshold)] = detail+ if frame.source_frame in selected:+ comparison_plot(output, frame, evidence, regions, maps, references)+ # Every frame's pair evidence is preserved, not just selected plots.+ arrays = dict(source_frame=np.array(frame.source_frame), shape=np.array(frame.depth.shape), intrinsic=frame.intrinsic)+ for method in METHODS:+ for name, oid in OBJECTS.items():+ pair = evidence[method][oid]+ for field in fields(pair): arrays[f'{method}/{name}/{field.name}'] = getattr(pair, field.name)+ if frame.source_frame in selected:+ arrays.update({f'{method}/{name}/candidate20/{k}': v for k, v in pair.candidates(20).items()})+ if frame.source_frame in selected:+ for name in OBJECTS:+ arrays.update({f'evaluation/{name}/{k}': v for k, v in regions[name].items()})+ for target, ref in references[name].items():+ arrays[f'evaluation/{name}/{target}_uv'] = ref[0]; arrays[f'evaluation/{name}/{target}_xyz'] = ref[1]+ arrays['depth_m'] = frame.depth+ np.savez_compressed(output/f'f{frame.source_frame:04d}_pairs.npz', **arrays)+ records.append(record)+ if index % 10 == 0: print(f'Frames {index+1}/{len(sources)}', flush=True)+ summary = pool.summary()+ summary.update({k: dict(**v, rate=v['candidates']/v['points'] if v['points'] else None) for k, v in negative.items()})+ density = {k: dict(observed=v['observed'], candidates=v['candidates'], grid_8x8=v['grid_8x8'].tolist(),+ fraction=v['candidates']/v['observed'] if v['observed'] else None) for k, v in density.items()}+ legacy_rim = {k: dict(**v, coverage=v['detected_band']/v['gt_band'] if v['gt_band'] else None) for k, v in legacy_rim.items()}+ latency = {m: {k: stats([r['methods'][m]['timing_ms'][k] for r in records]) for k in records[0]['methods'][m]['timing_ms']} for m in METHODS}+ data = dict(run_id=logger.run_id, config=config, evaluated_frames=len(records),+ git_commit=logger.metadata['git_commit'], git_dirty=logger.metadata['git_dirty'],+ summary=summary, density=density, legacy_rim=legacy_rim, latency_ms=latency, frames=records)+ save_json(output/'comparison.json', data)+ sweep_plot(output, summary)+ density_plot(output, density, frame.depth.shape)+ body = ''.join(f'<p><a href="{p.name}"><img src="{p.name}"></a></p>' for p in [output/'tradeoffs.png', output/'density.png']+[output/f'f{s:04d}_comparison.png' for s in selected])+ (output/'comparison.html').write_text(f'''<!doctype html><html><meta charset="utf-8"><title>Task02-C</title>+<style>body{{font:15px system-ui;max-width:1800px;margin:24px auto}}img{{width:100%}}</style>+<h1>Task 02-C — structural edge candidate comparison</h1><p>Run {logger.run_id}; all {len(records)} frames; CPU only.+<a href="comparison.json">Full sweep / counts / errors / latency / density / frame metrics</a>.</p>+<p>PCL: NOT RUN (absent). RGB Canny: disabled. GT never used by detectors. Union is a proposal, not a structural class.+Whole-support precision uses <=2px AND <=3mm to visible physical references, without GT corridor filtering.+One-to-one matching additionally penalizes thick bands. Errors to GT are conditional on references being visible;+empty predictions still give zero recall. Curves sweep angle while preserving the original depth gate and normal support.+Rim line samples use the unchanged visible physical rim ROI for visibility; legacy band coverage remains in JSON.+No independent episode or final production threshold selection. Colours are debugging only; causes overlap.</p>{body}</html>''', encoding='utf-8')+ for p in sorted(p for p in output.rglob('*') if p.is_file()):+ logger.link_output(p, kind='metrics' if p.suffix == '.json' else 'trajectory' if p.suffix == '.npz' else 'reports')+ logger.log({m: summary[f'{m}/union/20/all'] for m in METHODS}, prefix='eval/task02c')+ logger.record(evaluated_frames=len(records), evaluation_device='cpu', gpu_executed=False, pcl_executed=False,+ dataset_sha256=config['input_sha256'], masks_sha256=config['masks_sha256'])+ return output+++if __name__ == '__main__':+ parser = argparse.ArgumentParser(description=__doc__)+ parser.add_argument('--input', type=Path, default=REPO/'visual/data/step2/ep000.npz')+ parser.add_argument('--masks', type=Path, default=REPO/'visual/results/runtime_tracking/ep000/masks.npz')+ parser.add_argument('--camera', default='base_camera')+ parser.add_argument('--out', type=Path, default=REPO/'visual/results/structural_edges')+ args = parser.parse_args()+ print(evaluate(args.input, args.masks, args.out, args.camera))diff --git a/visual/runtime/test/test_structural_edges.py b/visual/runtime/test/test_structural_edges.pynew file mode 100644index 0000000..465f5d7--- /dev/null+++ b/visual/runtime/test/test_structural_edges.py@@ -0,0 +1,150 @@+"""Task02-C tests of pair provenance, cause separation and evaluation failure modes."""+from dataclasses import fields, replace+import json+import os+from pathlib import Path+import tempfile+import unittest+from unittest.mock import patch++import numpy as np++from visual.runtime.geometry import build_organized_geometry, process_geometry+from visual.runtime.test.normal_diagnostics import synthetic_frame, synthetic_case, quantize+from visual.runtime.test.structural_edges import METHODS, THRESHOLDS, compare+from visual.runtime.test.run_structural_edges import Matcher, ratios, evaluate++K = np.array([[256., 0, 16], [0, 256, 16], [0, 0, 1]])+++class StructuralEdgesTest(unittest.TestCase):+ def frame(self, depth=None, mask=None):+ return synthetic_frame(np.full((32, 32), .25, np.float32) if depth is None else depth,+ K, np.ones((32, 32), bool) if mask is None else mask)++ def test_original_baseline_and_all_union_maps_are_preserved(self):+ frame, _, _ = synthetic_case('crease', K, shape=(32, 32))+ frame = replace(frame, depth=quantize(frame.depth))+ depth = frame.depth.copy(); mask = frame.masks[0].copy()+ result, evidence = compare(frame)+ original = process_geometry(frame)+ for oid in original.objects:+ for field in fields(original.objects[oid]):+ np.testing.assert_array_equal(getattr(original.objects[oid], field.name), getattr(result['baseline'].objects[oid], field.name))+ for method in METHODS:+ for oid in original.objects:+ f = result[method].objects[oid]+ for t in THRESHOLDS:+ np.testing.assert_array_equal(evidence[method][oid].candidates(t)['union'],+ f.depth_discontinuity | (np.rad2deg(f.normal_variation_rad) > t))+ np.testing.assert_array_equal(frame.depth, depth); np.testing.assert_array_equal(frame.masks[0], mask)++ def test_pair_indices_are_original_adjacent_pixels_without_row_wrap(self):+ _, evidence = compare(self.frame())+ p = evidence['baseline'][0].pixels+ self.assertEqual(len(p), 2*32*31)+ self.assertEqual(len(np.unique(p, axis=0)), len(p))+ delta = p[:, 1]-p[:, 0]+ self.assertTrue(np.isin(delta, [1, 32]).all())+ self.assertTrue(np.all(p[delta == 1, 0]//32 == p[delta == 1, 1]//32))++ def test_mask_cut_is_not_an_orientation_or_depth_edge(self):+ mask = np.ones((32, 32), bool); mask[:, 16] = False+ _, evidence = compare(self.frame(mask=mask))+ for method in METHODS:+ p = evidence[method][0]; c = p.candidates(5)+ self.assertTrue(p.mask_boundary.any()); self.assertTrue(c['mask'].any())+ self.assertFalse(c['union'].any(), method)+ self.assertFalse(c['invalid'].any())++ def test_invalid_depth_is_not_a_zero_depth_jump(self):+ depth = np.full((32, 32), .25, np.float32); depth[:, 16] = np.nan+ _, evidence = compare(self.frame(depth=depth))+ for method in METHODS:+ p = evidence[method][0]; c = p.candidates(5)+ self.assertTrue(c['invalid'].any()); self.assertFalse(c['depth'].any())+ self.assertFalse(c['union'].any()); self.assertTrue(np.isnan(p.signed_depth_delta_m[p.invalid_depth_boundary]).all())++ def test_depth_step_retains_both_sides_and_external_neighbor(self):+ depth = np.full((32, 32), .25, np.float32); depth[:, 16:] = .5+ _, evidence = compare(self.frame(depth=depth))+ for method in METHODS:+ p = evidence[method][0]; c = p.candidates(180)+ self.assertEqual(int(p.depth_jump.sum()), 32)+ np.testing.assert_array_equal(np.flatnonzero(c['occluding'].any(0)), [15])+ np.testing.assert_array_equal(np.flatnonzero(c['occluded'].any(0)), [16])+ mask = np.ones((32, 32), bool); mask[:, 16:] = False+ _, evidence = compare(self.frame(depth=depth, mask=mask))+ c = evidence['pca5'][0].candidates(20)+ self.assertEqual(c['depth'].sum(), 32); self.assertFalse(c['occluded'].any())++ def test_overlap_empty_support_and_threshold_validation(self):+ frame = self.frame(); frame = replace(frame, masks={0: frame.masks[0], 1: frame.masks[0]})+ _, evidence = compare(frame)+ for method in METHODS:+ p = evidence[method][0]+ self.assertTrue(p.overlap.all()); self.assertFalse(p.supported.any()); self.assertFalse(p.candidates(0)['union'].any())+ for t in (-1, np.nan, np.inf):+ with self.assertRaises(ValueError): p.candidates(t)++ def test_gt_is_not_a_detector_input_and_rgb_does_not_affect_results(self):+ frame, _, _ = synthetic_case('crease', K, shape=(32, 32))+ _, a = compare(frame)+ _, b = compare(replace(frame, rgb=np.full_like(frame.rgb, 255), tcp_pose=np.ones(7)))+ for method in METHODS:+ for field in fields(a[method][0]):+ np.testing.assert_array_equal(getattr(a[method][0], field.name), getattr(b[method][0], field.name))++ def test_projected_occluder_fails_joint_3d_matching(self):+ geometry = build_organized_geometry(self.frame())+ uv = np.array([[16., 16.]])+ xyz = geometry.xyz[16, 16:17].copy(); xyz[:, 2] += .05+ m = Matcher(geometry, 0, (uv, xyz))+ pred = np.zeros((32, 32), bool); pred[16, 16] = True+ row, _ = m.score(pred)+ self.assertEqual(row['matched_candidates'], 0); self.assertEqual(row['covered_references'], 0)++ def test_dense_noise_does_not_win_one_to_one_precision(self):+ geometry = build_organized_geometry(self.frame())+ m = Matcher(geometry, 0, (np.array([[16., 16.]]), geometry.xyz[16, 16:17]))+ sparse = np.zeros((32, 32), bool); sparse[16, 16] = True+ a = ratios(m.score(sparse)[0]); b = ratios(m.score(np.ones((32, 32), bool))[0])+ self.assertEqual(a['recall'], b['recall']); self.assertEqual(a['one_to_one_f1'], 1)+ self.assertLess(b['one_to_one_precision'], .001)++ def test_missing_prediction_and_missing_reference_remain_explicit(self):+ geometry = build_organized_geometry(self.frame())+ m = Matcher(geometry, 0, (np.array([[16., 16.]]), geometry.xyz[16, 16:17]))+ row, values = m.score(np.zeros((32, 32), bool), distances=True)+ self.assertEqual(ratios(row)['recall'], 0); self.assertEqual(values['gt_to_candidate_px'].size, 0)+ m = Matcher(geometry, 0, (np.empty((0, 2)), np.empty((0, 3))))+ row, _ = m.score(np.ones((32, 32), bool))+ self.assertEqual(row['candidates_without_visible_reference'], 1024); self.assertEqual(ratios(row)['precision'], 0)++ def test_saved_evaluation_identity_and_all_frame_guard(self):+ n, h, w = 2, 16, 16+ ep = {'camera/rgb': np.zeros((n, h, w, 3), np.uint8), 'camera/depth': np.full((n, h, w), .3, np.float32),+ 'camera/intrinsic': np.tile([[100, 0, 8], [0, 100, 8], [0, 0, 1]], (n, 1, 1)),+ 'camera/cam2world': np.tile(np.eye(4), (n, 1, 1)), 'tcp_pose': np.tile([0, 0, 0, 1, 0, 0, 0], (n, 1)),+ 'camera/seg': np.ones((n, h, w), np.int16), 'peg_id': np.array(1), 'box_id': np.array(2),+ 'peg_pose': np.tile([0, 0, .4, 1, 0, 0, 0], (n, 1)), 'box_pose': np.tile([1, 0, .5, 1, 0, 0, 0], (n, 1)),+ 'box_hole_pose': np.tile([1, 0, .5, 1, 0, 0, 0], (n, 1)), 'peg_half_sizes': np.array([.1, .1, .1]),+ 'box_hole_radii': np.array(.02), 'seed': np.array(0)}+ with tempfile.TemporaryDirectory() as directory:+ root = Path(directory); episode = root/'ep.npz'; mask = root/'masks.npz'+ np.savez(episode, **ep)+ np.savez(mask, source_frame=np.arange(n), peg=np.ones((n, h, w), bool), box=np.zeros((n, h, w), bool))+ with patch.dict(os.environ, {'WANDB_MODE': 'disabled', 'EXPERIMENTS_DIR': str(root/'experiments')}):+ output = evaluate(episode, mask, root/'out', camera='camera', selected=())+ data = json.loads((output/'comparison.json').read_text())+ self.assertEqual(data['evaluated_frames'], 2)+ self.assertEqual(output.name, data['run_id'])+ self.assertEqual(len(list(output.glob('*_pairs.npz'))), 2)+ self.assertFalse(data['config']['gt_detector_input'])+ metadata = json.loads((root/'experiments'/output.name/'metadata.json').read_text())+ self.assertEqual(metadata['status'], 'finished')+ np.savez(mask, source_frame=np.array([0]), peg=np.ones((1, h, w), bool), box=np.zeros((1, h, w), bool))+ with self.assertRaises(ValueError): evaluate(episode, mask, root/'out', camera='camera', selected=())+++if __name__ == '__main__': unittest.main()diff --git a/docs/visual-graph-integration/02c_structural_edges.md b/docs/visual-graph-integration/02c_structural_edges.mdnew file mode 100644index 0000000..6c1b3b8--- /dev/null+++ b/docs/visual-graph-integration/02c_structural_edges.md@@ -0,0 +1,360 @@+# Task 02-C — Structural Edge Candidate Detection 비교++**Task 02-C의 후보 검출 비교를 완료하고 중단한다.** Sampling, 최종 분류, graph,+runtime 기본값은 변경하지 않았다. 후속 Structural Point 검토에는 **C의 PCA 5×5+orientation 후보와 분리된 depth 경계 증거**를 우선 추천한다. CPU 비용이 우선이면+B의 FD 2px도 유력하다. **원시 depth OR variation을 그대로 구조점으로 채택할 만큼+충분한 결과는 어느 방법에서도 ��지 못했다.** A도 높은 threshold에서 경쟁력이 있어+단일 threshold나 단일 지표로 최종 알고리즘을 확정할 수 없다.++최종 run: `b622e76deceb419ab9c5aa80a8f8280c`.+[비교 HTML](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/comparison.html),+[전체 JSON](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/comparison.json),+[threshold / PR 그림](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/tradeoffs.png),+[공간 분포](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/density.png),+[검증·보존 기록](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/verification.json),+[Task 02-C diff](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/implementation.patch).++## 1. 범위와 입력++같은 저장 simulator RGB-D `visual/data/step2/ep000.npz`, 같은+`visual/results/runtime_tracking/ep000/masks.npz`, `base_camera`, 원본 512×512,+source frame **0–120 전체 121개**를 사용했다. 실제 물리 depth 센서 데이터나 독립+episode 검증은 아니다. Tracking / simulator / Grounding DINO를 다시 실행하지 않았다.++- Episode SHA-256: `22ad72d776057da9ed5f85014cba47b4603e421623f29763c88edb159a5087ba`+- Masks SHA-256: `6bf9555a9c97c83a09d9733e582e9c4b9509f95e9dd06854ba05d3ac25fb7042`+- `geometry.py` SHA-256: `36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9`++| 조건 | 후보 검출 |+| --- | --- |+| A | 기존 `estimate_surface_normals` + 기존 variation + depth jump |+| B | Task 02-B `finite_difference(..., 2)` + 같은 variation + depth jump |+| C | Task 02-B `local_plane(..., 5)` + 같은 variation + depth jump |+| D | 공식 PCL 검토 완료, dependency 부재로 **NOT RUN** |++Normal 지원, invalid 처리, patch 연결·rank 조건은 Task 02-B와 동일하다. 최적화+PCA 구현으로 교체하지 않았다. Variation은 1px 4-neighbour의 최대 oriented angle,+depth gate는 기존 `abs(dz) > 0.01m + 0.02*min(z1,z2)`다. GT, segmentation,+pose, 물체 치수는 검출 후 평가에만 사용한다. RGB는 overlay 배경에만 사용했다.+RGB Canny 조건을 추가하지 않았고 RGB node feature도 만들지 않았다.++## 2. 서로 다른 경계 증거와 pixel-pair 보존++새 비교 전용 [`structural_edges.py`](../../visual/runtime/test/structural_edges.py)는+각 물체 raw mask에 닿는 인접 좌우/상하 pair를 한 번씩 저장한다. Pair의 두 endpoint는+원본 `flat_index=v*W+u`다. 매 프레임의 `fNNNN_pairs.npz` 121개에 다음을 보존했다.++| 필드 | 의미 |+| --- | --- |+| `pixels[P,2]`, `shape` | 원본 인접 pixel pair, 원본 raster 크기 |+| `supported[P,2]` | 각 endpoint가 해당 물체의 유효·비중첩 관측점인지 |+| `normal_angle_deg[P]` | 양쪽 normal이 유효할 때의 orientation 차이; 나머지는 NaN |+| `signed_depth_delta_m[P]`, `depth_jump[P]` | 유효 depth 양쪽의 signed 차이와 기존 jump gate 결과 |+| `near_endpoint`, `far_endpoint` | jump의 가까운/먼 endpoint 0 또는 1; jump 없으면 −1 |+| `mask_boundary`, `invalid_depth_boundary`, `overlap[P,2]` | mask 전환, depth validity XOR, tracker 중첩을 독립적으로 기록 |++`orientation`, `depth`, `union`, `occluding`, `occluded`, `invalid`, `mask` map은+pair에서 복원할 수 있다. 표의 주 비교 후보는 요구한 **orientation OR depth**다.+원인 flag는 겹칠 수 있고, 같은 pixel이 서로 다른 pair에서 near와 far 양쪽일 수도 있다.+near/far는 **관측 depth 순서에 따른 잠재적 가림 방향**이며 실제 robot 가림의 확정+라벨이 아니다. Depth jump에는 grazing 표면·silhouette·tracker 오염도 섞인다.+Mask 전환이나 invalid depth 자체를 structural 후보에 OR하지 않는다.++영상 밖에는 가상 pair를 만들지 않는다. Raster shape로 image border를 확인한다.+가림 뒤의 depth를 보간하거나 무효 depth를 0m 점으로 비교하지 않는다. Pair 정보는+향후 intra-object filtering에서 양쪽 소속·jump 방향을 검사하는 데 필요하다.+이 pair는 관측 증거이며 **GNN graph edge를 생성한 것이 아니다.**++## 3. GT와 지표 정의++Task 02-A/B의 `real_truth`, `real_regions`, `rim_region`, analytic cuboid oracle을+변경 없이 재사용했다. Peg plane의 analytic depth 잔차 ≤1.5mm, 다른 면에서 4mm+여유, signed face별 3px erosion도 그대로다.++Peg seam reference는 서로 다른 **GT 가시 signed face의 맞닿는 양쪽 raster endpoint**+32,664 pixel-frame다. 따라서 Peg의 위치 오차는 그 endpoint에 대한 값이며 subpixel+CAD 선분까지의 정확한 오차는 아니다. Box의 다른 가시 face junction도 전체 precision의+positive reference에 포함한다. Silhouette를 구조 GT로 추가하지 않는다.++Hole rim은 기존 **가시 물리 rim band 3,425 pixel-frame**의 coverage를 별도로 유지했다.+그 안에서 보이는 입구 선분을 subpixel로 투영하고, 기존 가시 rim 표면까지 ≤1.5px 및+≤4mm인 선분 sample만 남겼다. 투영된 raster cell당 선분의 가장 가까운 한 점을 선택한+**1,778개 물리 선분 reference**로 위치와 coverage를 평가했다. 이는 평가용 GT 이산화다.+검출 point의 sampling은 아니다. 가려진 전체 rim 투영을 정답으로 채우지 않았다.+GT 가시성 역시 이 raster/metric tolerance를 이용한 근사라는 한계가 있다.++전체 reference는 물체별 seam/rim을 같은 raster cell에서 중복 제거한 **35,869개**다.+같은 물체끼리만 매칭한다. 후보를 GT 주변 corridor로 제한하지 않고 tracker의 모든+관측 point에서 평가한다. 잘못 포함된 robot/background 후보도 precision 분모에 남는다.++- **Precision:** 전체 후보 중 같은 GT reference와 **≤2px AND ≤3mm**를 동시에 만족하는 비율.+- **Recall / coverage:** GT reference 중 같은 조건의 후보가 하나 이상 있는 비율. Tracker가 놓친 reference도 분모에 남는다.+- **일대일 지표:** 같은 허용오차의 최대 bipartite matching으로 후보와 reference를 각 한 번만 인정한다. 넓은 후보 띠의 중복을 벌점화한다.+- **위치 오차:** 후보→GT와 GT→후보의 최근접 2D/3D 거리를 모두 기록한다. 두 거리 통계의 최근접 상대는 다를 수 있지만 P/R 판정은 같은 pair에 두 조건을 적용한다.+- **False candidate:** 알려진 구조 reference 주변 Manhattan 3px를 제외한 plane / silhouette / occlusion / tracker-cut ROI에서 후보 비율. ROI는 서로 겹칠 수 있다.++Box plane은 GT signed face별 3px erosion과 rim 4px 제외를 추가한 평가 control이다.+Robot occlusion은 저장 `segmentation_id_map.json`의 `panda_*` IDs 1–13을 사용해+기존 occlusion ROI의 **물체 가시 측**만 구분했다. 일반 occlusion과 구분해 JSON에 남겼다.+Invalid-depth Peg ROI의 관측점은 0개이므로 그 false rate는 N/A다.++Reference가 없는 물체/frame의 후보도 precision 분모에 남고 위치 오차만 missing이다.+후보가 없으면 recall은 0이다. 일대일 지표는 GT raster 이산화/밀도에 의존하며 최종+sampling 품질의 정답 점수는 아니다. Micro 집계는 연속 pixel-frame이므로 독립 표본에+대한 신뢰구간이나 일반화 성능을 주장하지 않는다.++## 4. 동일 20°에서의 후보 검출++20°는 공통 비교·그림을 위한 조건이며 production threshold가 아니다.++| 방법 | 후보 수 | Precision | Recall | 일대일 F1 | Peg seam coverage | 물리 rim line coverage | 기존 rim band coverage |+| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |+| A | 432,182 | 15.88% | 95.03% | 14.36% | 96.44% | 74.92% | 69.75% |+| B | 107,297 | 51.64% | 91.08% | 45.14% | 93.29% | 74.18% | 63.33% |+| C | 101,948 | 49.02% | 91.76% | 47.29% | 94.04% | 75.31% | 63.85% |+| D | NOT RUN | — | — | — | — | — | — |++A의 95.03% coverage는 363,539개의 unmatched 후보를 동반한다. B/C의 unmatched는+51,894/51,973개다. 전체 관측점 1,051,134개에서 후보 밀도는 A 41.12%, B 10.21%,+C 9.70%다. Peg/Box별 밀도는 A 49.76/24.90%, B 11.24/8.28%, C 10.06/9.02%다.+고밀도 A가 coverage에서 유리하다는 사실을 precision과 일대일 점수가 드러낸다.++## 5. Threshold sweep과 trade-off++**2, 5, 10, 15, 20, 25, 30, 40, 60, 90, 180°**의 모든 조건에서 같은 GT와+동일한 tolerance를 썼다. 180°는 depth-only control이다. Depth gate와 normal+support는 기존 비교를 보존하기 위해 고정했다. Depth threshold 최적화 결과는 아니다.+JSON에는 union과 orientation-only의 전체 sweep, 분모·분자, 위치·밀도가 있다.++| 방법·각도 | Union precision / recall | Union 일대일 F1 | Peg seam / 물리 rim coverage |+| --- | ---: | ---: | ---: |+| A 10° | 9.77 / 97.35% | 8.35% | 98.55 / 76.27% |+| A 30° | 24.06 / 92.77% | 24.49% | 94.74 / 74.92% |+| A 40° | 43.48 / 91.65% | 53.22% | 93.79 / 74.92% |+| B 10° | 20.64 / 94.77% | 17.00% | 95.88 / 74.18% |+| B 20° | 51.64 / 91.08% | 45.14% | 93.29 / 74.18% |+| B 30° | 44.04 / 89.36% | 52.19% | 91.89 / 74.18% |+| C 10° | 53.36 / 93.11% | 40.77% | 95.07 / 75.31% |+| C 20° | 49.02 / 91.76% | 47.29% | 94.04 / 75.31% |+| C 30° | 41.45 / 85.93% | 50.56% | 89.17 / 75.20% |++A 40°의 union 일대일 F1은 이 sweep에서 B/C의 최대값보다 높다. Quantization의+큰 반응을 threshold로 잘라내면 A도 유력하므로 “PCA가 모든 지표에서 우세”라고+결론 내릴 수 없다. 이 수치는 같은 episode에서 본 최대값이며 validation으로 선택한+threshold가 아니다. FD/PCA의 지원 window는 진짜 sharp orientation 반응도 퍼뜨려+40° 이후 seam coverage를 크게 잃는다.++Orientation-only 20°의 P/R은 A **17.19/91.86%**, B **86.33/86.39%**,+C **80.29/90.19%**다. 물리 rim coverage는 각각 **40.89/39.82/64.29%**다.+C는 B보다 orientation만으로 rim을 더 보존하지만 부분 patch의 boundary 오반응도 남는다.+Depth-only는 모든 방법에서 후보 **45,697개**, P/R **4.86/7.40%**, rim coverage+37.06%다. Depth를 합치면 rim recall이 늘어도 전체 precision은 크게 낮아진다.+관측 depth jump를 structural이라고 자동 분류하면 안 된다는 직접적인 근거다.++## 6. 위치와 관측 실패++20° union에서 GT→후보 거리의 p50 / p95:++| 대상·방법 | 2D (px) | 3D (mm) |+| --- | ---: | ---: |+| Peg A | 0 / 1 | 0.577 / 1.401 |+| Peg B | 0 / 1 | 0.602 / 3.693 |+| Peg C | 0 / 1 | 0.619 / 3.446 |+| Rim A | 0.345 / 13.465 | 1.483 / 27.064 |+| Rim B | 0.356 / 14.373 | 1.514 / 29.199 |+| Rim C | 0.389 / 14.351 | 1.538 / 28.433 |++전체 후보→GT 거리의 p50 / p95는 A **10.00/37.66px, 9.99/74.69mm**,+B **1.41/47.01px, 1.41/164.69mm**, C **1.41/51.67px, 1.87/176.89mm**다.+물체/frame에 가시 reference가 있을 때의 거리이며 N/A frame 후보 수는 별도 기록한다.+B/C의 p95가 더 큰 것은 평면 후보가 줄어드는 동안 먼 오염·가림 후보의 비중이+커지는 효과도 포함한다. 이를 유효한 seam의 위치가 전부 더 나빠졌다는 뜻으로+해석하지 않는다. Raw positive depth outlier도 제거하지 않아 3D maximum은 매우 크다.++| Frame | Peg seam GT / A·B·C 검출 | 물리 rim GT / A·B·C 검출 | 확인 사항 |+| --- | ---: | ---: | --- |+| 0 | 464 / 461·459·462 | 103 / 103·103·103 | A의 넓은 평면 오반응, B/C의 crease 집중 |+| 15 | 447 / 441·436·441 | 0 / N/A | 손 가림, rim 비가시성을 검출 실패율로 만들지 않음 |+| 45 | 287 / 287·286·287 | 0 / N/A | Box orientation 후보 B/C=0, depth 후보는 각각 159개 남음 |+| 80 | 188 / 176·156·159 | 0 / N/A | 손 가림, tracker 오염·중첩·지원 손실 |+| 120 | 132 / 96·82·83 | 41 / 4·4·4 | Rim 관측 실패가 모든 방법의 coverage를 제한 |++Frame 120은 기존 rim band 51개 중 tracker 관측이 15개이고, union 후보는 모두 6개다.+물리 선분 reference coverage는 4/41=9.76%다. 정상적인 평균 rim 결과만 보고 이런+실패를 숨기면 안 된다. 기존 band 전체 3,425개 중 tracker 관측은 2,911개(84.99%)다.+어떤 estimator도 잃은 관측을 복원하지 않는다.++## 7. 평면·가림·mask 혼동++다음은 알려진 구조 주변 3px를 제외한 **관측 point 중 union>20° 후보 비율**이다.+GT 경계 ROI는 검출 입력이나 후보 삭제에 사용하지 않았다.++| 평가 영역 | A | B | C |+| --- | ---: | ---: | ---: |+| Peg 정상 평면 (342,004개) | 42.133% | 0.116% | 0.0015% |+| Box 정상 평면 (256,187개) | 18.301% | 0% | 0.036% |+| Peg silhouette | 48.130% | 21.014% | 21.235% |+| Box silhouette | 34.105% | 21.630% | 24.567% |+| Peg robot occlusion | 19.683% | 14.535% | 13.935% |+| Box robot occlusion | 44.784% | 28.957% | 29.094% |+| Peg 같은 면 tracker cut | 15.812% | 14.079% | 14.221% |+| Box 같은 면 tracker cut | 35.967% | 20.372% | 22.436% |+| Peg tracker contamination | 48.557% | 42.540% | 48.115% |+| Box tracker contamination | 63.294% | 49.653% | 59.528% |+| Box invalid depth 주변 | 20.915% | 2.577% | 2.577% |++양자화 평면의 대량 후보는 B/C에서 줄었다. 그러나 mask/robot/silhouette 혼동은+해결되지 않았다. Invalid나 mask flag 자체를 union에 넣지 않아도 인접한 실제 depth+차이와 불완전한 normal 지원 때문에 후보가 생긴다. 이 표는 비배타적인 경계별 위험을+보여주며 원인별 FP 수를 서로 더하면 안 된다.++## 8. 시각화와 공간 분포++[0](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0000_comparison.png),+[15](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0015_comparison.png),+[45](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0045_comparison.png),+[80](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0080_comparison.png),+[120](../../visual/results/structural_edges/b622e76deceb419ab9c5aa80a8f8280c/f0120_comparison.png)은+각 frame의 모든 방법에서 같은 full / Peg / Box crop, source `(u,v)` 좌표계를 쓴다.+GT 패널과 detector 패널은 분리했다. Frame별 crop은 물체 이동을 따라가므로 모든+frame에 똑같은 고정 crop을 강제하지는 않았다.++빨강=orientation 후보, 주황 square=depth jump, 자홍=near/잠재 occluding,+청록=far/잠재 occluded, 흰색=invalid depth, 초록 circle=mask 경계다. 겹친 원인은+marker 형태와 pair flags로 확인한다. 이 색상은 디버깅 전용이며 모델 입력이 아니다.+GT 구조는 별도 패널의 노란색이다.++8×8 source-image tile별 누적 후보 수와 물체별 관측 대비 밀도를 JSON/heatmap에+남겼다. A는 넓은 Peg·Box 평면에 퍼지고 B/C는 seam 주변에 모이지만, 손에 가려진+후반 frame의 외곽·오염 후보는 남는다. 밀도 그림은 point-frame 점유 분포이며+3D 표면 면적당 밀도나 sampling budget을 뜻하지 않는다.++## 9. CPU 비용++macOS arm64, Python 3.11.13, NumPy 2.4.6, SciPy 1.17.1 CPU에서 실행했다.+121프레임 각각 Peg+Box를 계산하고 방법별 1회 warmup을 제외했다. 방법 실행 순서를+frame마다 회전했다. 공유 XYZ 생성 비용을 각 방법 total에 포함했다. I/O, GT,+threshold sweep 전체, 평가·매칭, 압축 저장, 그림, logger는 제외했다.++아래 값은 stage별 **p50 / p95 ms**, total은 단계 percentile의 합이 아닌 실제 합계의+percentile이다. 관측 물체 면적이 줄어들어 특히 PCA의 frame별 비용 차이가 크다.++| 방법 | Normal | 기존 feature | Pair 증거 | 한 threshold map | 전체 (XYZ 포함) |+| --- | ---: | ---: | ---: | ---: | ---: |+| A | 3.978 / 5.614 | 8.406 / 9.873 | 1.902 / 4.105 | 0.307 / 0.621 | 20.888 / 26.918 |+| B | 2.815 / 5.610 | 8.387 / 9.750 | 1.860 / 3.933 | 0.293 / 0.558 | 19.730 / 26.794 |+| C | 21.909 / 62.898 | 8.539 / 9.698 | 1.911 / 4.136 | 0.294 / 0.587 | 39.364 / 82.433 |+| D | NOT RUN | — | — | — | NOT RUN |++공유 XYZ의 p50/p95는 6.793/7.532ms다. C의 total p50은 B의 약 2배다. 기존 PCA+최적화 산출물은 보존했고 이번 비교에서는 사용하지 않았다. PCL의 추출·array copy·binding+비용과 메모리 사용은 **미측정**이며 0ms 또는 빨라질 것으로 보고하지 않는다.++## 10. PCL 검토·설치 및 binding 제약++현재 root `.venv`에 `pcl`, `pclpy`가 없고 `ctypes.find_library`로 `pcl_common`,+`pcl_features`도 찾지 못했다. `/opt/homebrew`, `/usr/local`, `/usr`의 표준 include+경로에 organized-edge header가 없고 `pkg-config`도 없다. **D=NOT RUN**이다.+시스템 package 설치, C++ build, Python binding 구현은 하지 않았다.++공식 [`OrganizedEdgeFromNormals` header](https://pointclouds.org/documentation/organized__edge__detection_8h_source.html)는+XYZ+normal에서 NAN_BOUNDARY=1, OCCLUDING=2, OCCLUDED=4, HIGH_CURVATURE=8을+반환한다. RGBNormals는 RGB_CANNY=16도 지원한다. Geometry-only 통합 시 FromNormals를+쓰고 `setEdgeType(1|2|4|8)`로 RGB를 제외하는 것이 적합하다. Labels는 bitmask이며+Corner/Edge/Surface 정답으로 변환하면 안 된다.++공식 [구현](https://pointclouds.org/documentation/organized__edge__detection_8hpp_source.html)을 보면+depth는 8-neighbour 및 invalid 구간 검색을 사용하고, high-curvature는 normal x/y에+Canny를 적용한다. A/B/C의 4-neighbour angle threshold와 같은 알고리즘·단위가 아니다.+Depth threshold와 high-curvature low/high threshold를 각각 sweep해야 한다.++추후 허용된 환경에 통합할 정확한 범위:++1. **고정 버전 dependency:** 검토한 PCL 1.15.1 기준 CMake ≥3.16.3,+ C++17 기본 compiler, Eigen ≥3.3, Boost ≥1.71(`iostreams`; C++14 선택 시 `filesystem`도),+ FLANN ≥1.9.1. `pcl_features`의 전이 component는 common/search/kdtree/octree/filters/2d다.+ [루트 CMake](https://github.com/PointCloudLibrary/pcl/blob/pcl-1.15.1/CMakeLists.txt),+ [Boost 검사](https://github.com/PointCloudLibrary/pcl/blob/pcl-1.15.1/cmake/pcl_find_boost.cmake),+ [features dependency](https://github.com/PointCloudLibrary/pcl/blob/pcl-1.15.1/features/CMakeLists.txt) 기준이다.+ 이 geometry-only 경로에 visualization/VTK, 센서 OpenNI, CUDA는 필요하지 않다.+2. **작은 독립 adapter:** 전체 PCL Python wrapping 대신 compiled CLI 또는 최소 pybind11+ 함수 하나로 `[H,W,3]` XYZ/normal → `[H,W] uint32` label과 원본 index를 반환한다.+ pybind11을 선택하면 해당 Python 3.11 arm64 ABI와 pybind11 build dependency가 추가된다.+3. **Raster/NaN 계약:** width/height를 유지하고 invalid XYZ만 NaN 처리한다. Tracker 밖의+ 유효 배경 depth를 mask 때문에 NaN으로 바꾸면 인공 NAN_BOUNDARY가 생기므로 구분한다.+ 물체별 normal validity·camera-facing 규약, PCL의 NaN normal 처리도 실행 검증해야 한다.+4. **공정성:** 우선 C의 같은 PCA5 normals를 공급해 edge 알고리즘 차이를 비교하고,+ PCL normal estimator를 추가한다면 독립 조건으로 나눈다. GT는 입력하지 않는다.+5. **Provenance/검증:** 공식 label은 pixel label이라 실제 검색 상대 pair를 주지 않는다.+ 이번 4-neighbour pair 증거는 함께 보존하되 PCL의 8-neighbour/invalid-search 상대라고+ 주장할 수 없다. 그 상대가 필요하면 C++ instrumentation이 추가 작업이다.+ 합성 plane/crease/step/invalid/mask control, 기존 121프레임, 전체 PR, marshal·normal·PCL+ 시간을 분리해 실행해야 한다. 이 항목들은 후속 작업 범위이며 이번에 구현하지 않았다.++## 11. 추천과 중단 지점++C의 orientation 후보는 10–20°에서 plane 오반응을 억제하면서 seam coverage+95.07–94.04%, orientation-only rim coverage 65.24–64.29%를 보였다. B의 같은+orientation-only rim은 약 39.82%다. 가시 rim과 부분 normal 지원을 유지해야 하는+후속 Structural Point 검토의 우선 후보로 C를 추천하는 이유다.++CPU 지연이 중요하면 B가 더 현실적이다. B 20°는 C 20°보다 전체 union precision이+높고 비용이 절반 정도다. A 40°의 일대일 F1도 더 높으므로 후속 검토에서 제외하지+않는다. Rim의 잃은 관측, robot/mask 경계, threshold에 따른 구조 약화 때문에+**어떤 raw union도 충분한 최종 구조점 selector로 판단하지 않는다.**++후속 검토에서는 orientation 후보와 depth/near/far 증거를 분리해 해석하는 것이+필요하다. 이번에는 경계 제거 정책, candidate thinning, Structural/Surface sampling,+node budget, onehot/probability feature, intra-object graph, Tensor 출력, stale 처리,+GNN/GRU 변경을 구현하지 않았다. `00_interface.md`와 Point Cloud Representation도+변경하지 않았으며 production 기본값을 확정하지 않았다.++## 12. 테스트·변경 파일·재현성++- 새 unit/integration 테스트 **11/11 통과**: 원본 baseline 전체 field 동일성, 모든+ sweep union 일치, 원본 인접 index/no wrap, mask cut·invalid depth의 비구조성,+ depth 양쪽·외부 이웃, overlap, RGB 비의존성, 2D 근접 occluder의 3D 매칭 실패,+ dense false 후보의 일대일 벌점, missing reference/prediction, UUID와 전 frame 보존.+- 전체 runtime 회귀 **77개 실행: 74 통과, CUDA 3 skip**. Task 02-A/B 및 기존 PCA+ 최적화 CPU 테스트도 포함했다. CUDA/GPU, PCL, simulator backend는 이번에 실행하지 않았다.+- 공통 Logger/Artifact **42/42 통과**. Sandbox 안의 실제 W&B offline SDK 테스트는+ `ServicePollForTokenError`로 1개 실패했고, 동일 suite를 허용된 sandbox 밖에서 재실행해+ 42개 모두 통과했다. 실제 HF 게시나 W&B online 검증은 하지 않았다.+- 121프레임 × 3방법 × 2물체 × 11 threshold에서 pair union과 기존 feature map의+ full-raster 일치 assertion을 통과했다.++```bash+WANDB_MODE=disabled MPLCONFIGDIR=/private/tmp/task02c-mpl \+ .venv/bin/python -m visual.runtime.test.run_structural_edges++WANDB_MODE=disabled MPLCONFIGDIR=/private/tmp/task02c-mpl \+ .venv/bin/python -m unittest discover -s visual/runtime/test -p 'test_*.py' -v++.venv/bin/python -m unittest tests.test_experiment_logger tests.test_experiment_artifacts -v+```++추가한 code/doc는 아래 4개다. 기존 runtime와 Task 02-A/B 구현을 수정하지 않았다.++| 파일 | 역할 |+| --- | --- |+| [`structural_edges.py`](../../visual/runtime/test/structural_edges.py) | 비교 전용 pair evidence, A/B/C 검출·시간 측정 |+| [`run_structural_edges.py`](../../visual/runtime/test/run_structural_edges.py) | GT 평가, PR sweep, 전체 121 pair 저장, 그림·공통 Logger |+| [`test_structural_edges.py`](../../visual/runtime/test/test_structural_edges.py) | 11개 검증 |+| 이 문서 | 결과와 제한, 추천·중단 기록 |++`ExperimentLogger(team='visual', job_type='evaluate')`의 UUID/project/group과 로컬 기록,+`link_output`/기존 사후 등록을 재사용했다. `utils.experiment_artifacts`의 digest와+artifact inventory를 사용했으며 별도 W&B/HF transport를 추가하지 않았다. 원격 게시 없음.+최종 UUID 디렉터리에 JSON, HTML, 그림 7개, pair NPZ 121개, 실행 당시 source 사본을+보존했다. 중간 확인 run `6eed92...`, `935a86...`도 별도 디렉터리에 남겼으며 최종 수치는+위 `b622e76...`만 사용한다.++작업 시작 commit은 `42e30e4...`, 최종 평가가 기록한 commit은 `366e9ce...`, dirty=true다.+작업 도중 별도의 Task 02-B commit과 게시 문서 commit `b1ebe0e...`가 추가되었다.+시작 시 hash한 기존 파일 368개 중 **366개는 동일**하다. 이 작업은 기존 데이터·결과·+runtime·interface를 수정하지 않았다. 달라진 `02b_normal_comparison.md` 1개는 별도+Task 02-B commit `366e9ce`에 포함된 게시 안내 5줄 추가다. 안내를 제외하면 시작 hash와+일치하며 그 원문 사본도 보존했다. 다른 차이는 Finder 메타데이터 `.DS_Store` 1개다.+보존 기록은 이 외부 변경을 구분한다. Task 02-C 파일은 stage/commit하지 않았다.+새 파일을 포함한 diff는 `implementation.patch`로 제공하며, 기존 tracked code diff는 없다.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303"""Task 02-A evaluation helpers. No runtime estimator or predicted classes.
Analytic geometry is evaluation truth only. Actual features always come from theunchanged Task 01 extractor and recorded depth/tracker masks. Raster subsamplingis a diagnostic scale intervention without averaging or a replacement estimator."""from __future__ import annotations
from dataclasses import replaceimport numpy as npfrom scipy.ndimage import binary_dilation, binary_erosionfrom scipy.spatial.transform import Rotation
from visual.runtime.geometry import process_geometryfrom visual.runtime.rgbd import PEG, TrackedRGBDFrame
CROSS = np.array([[0, 1, 0], [1, 1, 1], [0, 1, 0]], bool)THRESHOLDS = (5, 10, 20, 30)
def erode(mask, radius): return binary_erosion(mask, CROSS, iterations=radius, border_value=0) if radius else mask.copy()
def dilate(mask, radius): return binary_dilation(mask, CROSS, iterations=radius) if radius else mask.copy()
def pairs(): yield (slice(None), slice(None, -1)), (slice(None), slice(1, None)) yield (slice(None, -1), slice(None)), (slice(1, None), slice(None))
def endpoints(mask, other): """Pixels in mask with an in-image four-neighbour in other.""" result = np.zeros_like(mask) for a, b in pairs(): result[a] |= mask[a] & other[b] result[b] |= mask[b] & other[a] return result
def stats(values): a = np.asarray(values, float) a = a[np.isfinite(a)] if not a.size: return dict(count=0, mean=None, p50=None, p95=None, p99=None, max=None) return dict(count=int(a.size), mean=float(a.mean()), p50=float(np.median(a)), p95=float(np.percentile(a, 95)), p99=float(np.percentile(a, 99)), max=float(a.max()))
def angular_error(normals, truth): """Oriented angle in degrees, stable for identical rounded unit normals.""" return np.rad2deg(np.arctan2(np.linalg.norm(np.cross(normals, truth), axis=-1), np.sum(normals * truth, axis=-1)))
def metrics(feature, region, truth=None): points = region & feature.valid_points nv = points & feature.normal_valid vv = points & feature.normal_variation_valid variation = np.rad2deg(feature.normal_variation_rad[vv]) n, nn, vn = int(points.sum()), int(nv.sum()), int(vv.sum()) row = dict(region_pixels=int(region.sum()), points=n, normals=nn, variation_valid=vn, observed_fraction_of_region=n/int(region.sum()) if region.any() else None, normal_fraction_of_region=nn/int(region.sum()) if region.any() else None, normal_valid_fraction=nn/n if n else None, variation_valid_fraction=vn/n if n else None, variation_deg=stats(variation), variation_hist_5deg=np.histogram(variation, bins=np.arange(0, 185, 5))[0].tolist(), depth_discontinuity=int((points & feature.depth_discontinuity).sum()), mask_boundary=int((points & feature.mask_boundary).sum()), invalid_depth_boundary=int((points & feature.depth_validity_boundary).sum()), incomplete_normal_neighbours=int((nv & (feature.normal_neighbor_count < 4)).sum())) response = points & (feature.depth_discontinuity | (feature.normal_variation_valid & (np.rad2deg(feature.normal_variation_rad) > 20))) row['jump_or_high20_count'] = int(response.sum()) row['jump_or_high20_fraction_of_region'] = int(response.sum())/int(region.sum()) if region.any() else None for t in THRESHOLDS: count = int(np.count_nonzero(variation > t)) row[f'high_{t}_count'] = count row[f'high_{t}_fraction_of_valid'] = count/vn if vn else None row[f'high_{t}_fraction_of_points'] = count/n if n else None if truth is not None: row['angular_error_deg'] = stats(angular_error(feature.normals[nv], truth[nv])) return row
def rays(shape, intrinsic): v, u = np.indices(shape, dtype=float) return np.stack(((u+.5-intrinsic[0, 2])/intrinsic[0, 0], (v+.5-intrinsic[1, 2])/intrinsic[1, 1], np.ones(shape)), axis=-1)
def synthetic_frame(depth, intrinsic, mask): return TrackedRGBDFrame(0, 'synthetic', np.zeros((*depth.shape, 3), np.uint8), np.asarray(depth, np.float32), np.asarray(intrinsic), np.eye(4), np.array([0, 0, 0, 1, 0, 0, 0.]), {PEG: mask.copy()}, 0, 0.)
def quantize(depth, mode='floor'): # Use float64 arithmetic on the same unquantized float32 input in A and B. scaled = np.asarray(depth, np.float64) * 1000 return ((np.floor(scaled) if mode == 'floor' else np.rint(scaled)) / 1000).astype(np.float32)
def synthetic_case(kind, intrinsic, shape=(512, 512), z0=.25, phase_m=0.): ray = rays(shape, intrinsic) x, y = ray[..., 0], ray[..., 1] a = np.zeros(shape) b = np.zeros(shape) if kind == 'tilted': a.fill(.4); b.fill(-.25) elif kind == 'crease': a[:] = np.where(x < 0, -.6, .6); b.fill(.15) elif kind not in ('front', 'step'): raise ValueError('unknown synthetic geometry') depth = (z0 + phase_m) / (1 - a*x - b*y) if kind == 'step': depth = depth + np.where(x >= 0, .05, 0.) truth = np.stack((a, b, -np.ones(shape)), axis=-1) truth /= np.linalg.norm(truth, axis=-1, keepdims=True) h, w = shape mask = np.zeros(shape, bool) mask[h//4:3*h//4, w//4:3*w//4] = True inner = erode(mask, 3) # Variation's complete dependency has Manhattan radius 2. edge = inner & (np.abs(np.indices(shape)[1] + .5 - intrinsic[0, 2]) <= 3) planar = inner & ~edge if kind in ('crease', 'step') else inner return synthetic_frame(depth, intrinsic, mask), truth, {'plane': planar, 'edge_band': edge}
def subframe(frame, stride): """Exact lattice [::s,::s], preserving pixel-centre CV projection, no filter.""" k = frame.intrinsic.astype(float).copy() k[0, 0] /= stride; k[1, 1] /= stride k[0, 2] = (k[0, 2]-.5)/stride+.5 k[1, 2] = (k[1, 2]-.5)/stride+.5 return replace(frame, depth=frame.depth[::stride, ::stride], rgb=frame.rgb[::stride, ::stride], masks={i: m[::stride, ::stride] for i, m in frame.masks.items()}, intrinsic=k)
def scale_probe(frame, baseline, object_id, plane_base, truth): """Compare each stride with stride 1 on IDENTICAL centres and safe flat support.
Larger strides change both stencil span and normal-comparison separation. Only analytic planar ROIs are used, so the ideal variation remains zero. """ common = erode(plane_base, 8) # Covers radius 2*s for the largest stride, s=4. rows = [] for stride in (1, 2, 4): sub = subframe(frame, stride) feature = baseline if stride == 1 else process_geometry(sub).objects[object_id] roi = common[::stride, ::stride] t = truth[::stride, ::stride] base_region = np.zeros_like(common) base_region[::stride, ::stride] = roi rows.append(dict(stride_px=stride, normal_span_px=2*stride, sample_origin_uv=[0, 0], baseline_same_centres=metrics(baseline, base_region, truth), larger_spacing=metrics(feature, roi, t))) return rows
def pose_rotation(pose): return Rotation.from_quat(np.asarray(pose)[[4, 5, 6, 3]]).as_matrix()
def ray_box(origin, direction, centre, half): """First positive ray/AABB hit, with CV-z parameter and signed face ID.""" delta_lo, delta_hi = centre-half-origin, centre+half-origin moving = np.abs(direction) > 1e-14 lo = np.divide(delta_lo, direction, out=np.full_like(direction, -np.inf), where=moving) hi = np.divide(delta_hi, direction, out=np.full_like(direction, np.inf), where=moving) near_axis, far_axis = np.minimum(lo, hi), np.maximum(lo, hi) parallel_outside = (~moving) & ((origin < centre-half) | (origin > centre+half)) near, far = near_axis.max(-1), far_axis.min(-1) hit = (near > 0) & (near <= far) & ~parallel_outside.any(-1) axis = near_axis.argmax(-1) chosen_dir = np.take_along_axis(direction, axis[..., None], -1)[..., 0] face = axis*2 + (chosen_dir < 0).astype(int) # 0=-x, 1=+x, etc. return np.where(hit, near, np.nan), np.where(hit, face, -1)
def oracle(frame, pose, boxes): """Analytic cuboid-union truth, never passed to actual feature extraction.""" rotation = pose_rotation(pose) cv_to_local = frame.cam2world[:3, :3].T @ rotation origin = (frame.cam2world[:3, 3]-pose[:3]) @ rotation direction = rays(frame.depth.shape, frame.intrinsic) @ cv_to_local depth = np.full(frame.depth.shape, np.nan) face = np.full(frame.depth.shape, -1, np.int8) for centre, half in boxes: z, f = ray_box(origin, direction, np.asarray(centre), np.asarray(half)) use = np.isfinite(z) & (~np.isfinite(depth) | (z < depth)) depth[use], face[use] = z[use], f[use] local = origin + np.nan_to_num(depth)[..., None]*direction axes = np.eye(3)[np.maximum(face, 0)//2] local_n = axes * np.where(face % 2, 1., -1.)[..., None] normals = local_n @ cv_to_local.T normals[face < 0] = np.nan return dict(depth=depth, face=face, local=local, normals=normals, origin=origin)
def box_primitives(half_length, hole_radius, hole_centre): """Installed ManiSkill _build_box_with_hole: four boxes, local x hole axis.""" t = (half_length-hole_radius)/2 cy, cz = hole_centre offset = t + hole_radius return [(np.array([0, offset+cy/2, 0]), np.array([half_length, t-cy/2, half_length])), (np.array([0, -offset+cy/2, 0]), np.array([half_length, t+cy/2, half_length])), (np.array([0, 0, offset+cz/2]), np.array([half_length, half_length, t-cz/2])), (np.array([0, 0, -offset+cz/2]), np.array([half_length, half_length, t+cz/2]))]
def real_regions(frame, result, gt, obj_oracle, object_id, half=None): feature = result.objects[object_id] valid = result.geometry.valid_depth hit = np.isfinite(obj_oracle['depth']) consistent = hit & valid & (np.abs(frame.depth-obj_oracle['depth']) <= .0015) visible = gt & consistent face = obj_oracle['face'] seam = np.zeros_like(gt) cut = np.zeros_like(gt) for a, b in pairs(): both = visible[a] & visible[b] different = both & (face[a] != face[b]) seam[a] |= different; seam[b] |= different same = both & (face[a] == face[b]) cut[a] |= same & feature.object_mask[a] & ~feature.object_mask[b] cut[b] |= same & feature.object_mask[b] & ~feature.object_mask[a] silhouette = endpoints(hit, ~hit) & visible occluder = hit & ~gt & valid & (frame.depth < obj_oracle['depth']-.0015) occlusion = endpoints(visible, occluder) regions = dict(all=np.ones_like(gt), gt_visible=visible, contamination=~gt, face_seam_2px=dilate(seam, 2) & visible, silhouette_2px=dilate(silhouette, 2) & visible, occlusion_2px=dilate(occlusion, 2) & visible, same_plane_tracker_cut_2px=dilate(cut, 2) & visible, invalid_depth_2px=dilate(feature.depth_validity_boundary, 2)) plane_base = np.zeros_like(gt) if half is not None: # Metric margin from all OTHER cuboid faces; separate signed-face ROIs. margin = half - np.abs(obj_oracle['local']) for f in range(6): axis = f//2 other = [i for i in range(3) if i != axis] candidate = visible & (face == f) & np.all(margin[..., other] > .004, axis=-1) plane_base |= candidate regions[f'plane_face_{f}'] = erode(candidate, 3) regions['plane_interior'] = np.logical_or.reduce([regions[f'plane_face_{f}'] for f in range(6)]) return regions, plane_base, dict(seam=seam, silhouette=silhouette, occlusion=occlusion, cut=cut)
def rim_region(frame, obj_oracle, visible, pose, half_length, radius, centre): """Visible entrance rim: analytic 3D distance <=4mm and raster band <=2px.
Geometry truth identifies a physical line. A GT segmentation contour alone is never treated as a rim. Hidden rim projections fail the 3D-distance test. """ local = obj_oracle['local'] x = np.sign(obj_oracle['origin'][0])*half_length cy, cz = centre distance2 = np.full(frame.depth.shape, np.inf) for axis, other, c, oc in ((1, 2, cy, cz), (2, 1, cz, cy)): for sign in (-1, 1): distance2 = np.minimum(distance2, (local[..., 0]-x)**2 +(local[..., axis]-(c+sign*radius))**2 +np.maximum(np.abs(local[..., other]-oc)-radius, 0)**2) raster = np.zeros(frame.depth.shape, bool) rotation = pose_rotation(pose) world_to_cv = np.linalg.inv(frame.cam2world) for axis, other, c, oc in ((1, 2, cy, cz), (2, 1, cz, cy)): for sign in (-1, 1): points = np.zeros((2001, 3)); points[:, 0] = x points[:, axis] = c+sign*radius points[:, other] = np.linspace(oc-radius, oc+radius, len(points)) cv = (points @ rotation.T + pose[:3]) @ world_to_cv[:3, :3].T + world_to_cv[:3, 3] uv = cv[:, :2]/cv[:, 2:3] * np.array([frame.intrinsic[0, 0], frame.intrinsic[1, 1]]) uv += frame.intrinsic[:2, 2] - .5 uv = np.rint(uv[cv[:, 2] > 0]).astype(int) ok = (uv[:, 0] >= 0) & (uv[:, 0] < raster.shape[1]) & (uv[:, 1] >= 0) & (uv[:, 1] < raster.shape[0]) uv = uv[ok]; raster[uv[:, 1], uv[:, 0]] = True projected_band = dilate(raster, 2) return visible & (distance2 <= .004**2) & projected_band, projected_band
def normal_blockers(result, object_id): """Nonexclusive reasons for unavailable normals on observed points.""" g, f = result.geometry, result.objects[object_id] support = f.valid_points masks = dict(mask=np.zeros_like(support), invalid_depth=np.zeros_like(support), overlap=np.zeros_like(support)) for a, b in pairs(): for p, q in ((a, b), (b, a)): masks['mask'][p] |= support[p] & ~f.object_mask[q] masks['invalid_depth'][p] |= support[p] & ~g.valid_depth[q] masks['overlap'][p] |= support[p] & g.overlap_mask[q] masks['depth_jump'] = support & f.depth_discontinuity masks['image'] = support & f.image_boundary invalid = support & ~f.normal_valid union = np.logical_or.reduce(list(masks.values())) return dict(unavailable=int(invalid.sum()), reasons_nonexclusive={k: int((invalid & v).sum()) for k, v in masks.items()}, unexplained=int((invalid & ~union).sum()))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130"""Task 02-B comparison candidates; never selected by the runtime pipeline.
Inputs are Task 01 organized observed XYZ and tracker support only. Unit normalsface the CV camera. The original estimator and variation implementation remainin geometry.py. No GT, RGB, resampling, smoothing or imputation is used here."""from __future__ import annotations
import numpy as np
from visual.runtime.geometry import GeometryParameters, OrganizedGeometry
METHODS = ('baseline', 'fd2', 'fd4', 'pca5', 'pca7')
def _jump(a, b, parameters): return np.abs(a-b) > parameters.depth_jump_abs_m + parameters.depth_jump_rel*np.minimum(a, b)
def _empty(geometry): return np.full_like(geometry.xyz, np.nan), np.zeros(geometry.valid_depth.shape, bool)
def _assign(geometry, vu, vectors, normals, valid): lengths = np.linalg.norm(vectors, axis=1) good = np.isfinite(lengths) & (lengths > 0) vu, vectors = vu[good], vectors[good]/lengths[good, None] if not len(vu): return xyz = geometry.xyz[vu[:, 0], vu[:, 1]] vectors[np.einsum('ij,ij->i', vectors, xyz) > 0] *= -1 normals[vu[:, 0], vu[:, 1]] = vectors.astype(np.float32) valid[vu[:, 0], vu[:, 1]] = True
def finite_difference(geometry: OrganizedGeometry, object_id: int, spacing: int, parameters: GeometryParameters = GeometryParameters()): """Full-resolution central secants with complete, gated axis paths.
Every intermediate pixel from centre to each of four endpoints must be observed for this object; EVERY adjacent pair must pass the original jump gate. Thus even an endpoint beyond a narrow gap cannot bridge it. The gate is on unit pixel steps, not multiplied by spacing or applied to longer secants. No one-sided fallback: incomplete stencils are invalid. """ if not isinstance(spacing, int) or isinstance(spacing, bool) or spacing < 1: raise ValueError('spacing must be a positive integer') normals, valid = _empty(geometry) h, w = valid.shape if min(h, w) <= 2*spacing: return normals, valid support = geometry.observed_mask(object_id) v, u = np.nonzero(support) inside = (v >= spacing) & (v < h-spacing) & (u >= spacing) & (u < w-spacing) v, u = v[inside], u[inside] good = np.ones(len(v), bool) z = np.where(geometry.valid_depth, geometry.xyz[..., 2], 0) for dv, du in ((0, -1), (0, 1), (-1, 0), (1, 0)): for step in range(1, spacing+1): a = (v+dv*(step-1), u+du*(step-1)) b = (v+dv*step, u+du*step) good &= support[b] & ~_jump(z[a], z[b], parameters) v, u = v[good], u[good] dx = geometry.xyz[v, u+spacing].astype(float)-geometry.xyz[v, u-spacing] dy = geometry.xyz[v+spacing, u].astype(float)-geometry.xyz[v-spacing, u] _assign(geometry, np.column_stack((v, u)), np.cross(dx, dy), normals, valid) return normals, valid
def local_plane(geometry: OrganizedGeometry, object_id: int, window: int, parameters: GeometryParameters = GeometryParameters(), *, min_points: int = 6, batch_size: int = 4096): """PCA of the centre-connected component inside an odd square patch.
Four-connected links require same-object finite positive depth and the original adjacent z-jump gate. Flood fill is confined to this patch, so disconnected islands/holes cannot be bridged via remote connections. All accepted points have equal weight, with no fitted residual trimming. True continuous creases below the gate CAN mix and blur: measured by this task. At least six points (including centre), rank >=2 and a unique smallest covariance eigenvector are required. Partial square patches are permitted. """ if not isinstance(window, int) or isinstance(window, bool) or window < 3 or window % 2 != 1: raise ValueError('window must be an odd integer >=3') if not isinstance(min_points, int) or min_points < 3 or batch_size < 1: raise ValueError('min_points must be >=3 and batch_size positive') normals, valid = _empty(geometry) support = geometry.observed_mask(object_id) centres = np.column_stack(np.nonzero(support)) h, w = support.shape radius = window//2 dv, du = np.meshgrid(np.arange(-radius, radius+1), np.arange(-radius, radius+1), indexing='ij') for start in range(0, len(centres), batch_size): vu = centres[start:start+batch_size] v, u = vu[:, 0, None, None]+dv, vu[:, 1, None, None]+du inside = (v >= 0) & (v < h) & (u >= 0) & (u < w) v, u = np.clip(v, 0, h-1), np.clip(u, 0, w-1) available = inside & support[v, u] xyz = geometry.xyz[v, u].astype(float) z = np.where(available, xyz[..., 2], 0) horizontal = available[:, :, :-1] & available[:, :, 1:] & ~_jump(z[:, :, :-1], z[:, :, 1:], parameters) vertical = available[:, :-1, :] & available[:, 1:, :] & ~_jump(z[:, :-1, :], z[:, 1:, :], parameters) reached = np.zeros(available.shape, bool) reached[:, radius, radius] = True for _ in range(window*window-1): nxt = reached.copy() nxt[:, :, 1:] |= reached[:, :, :-1] & horizontal nxt[:, :, :-1] |= reached[:, :, 1:] & horizontal nxt[:, 1:, :] |= reached[:, :-1, :] & vertical nxt[:, :-1, :] |= reached[:, 1:, :] & vertical if np.array_equal(nxt, reached): break reached = nxt count = reached.sum((1, 2)) enough = count >= min_points if not enough.any(): continue vu, count, reached, xyz = vu[enough], count[enough], reached[enough], xyz[enough] # Centre-relative coordinates and float64 covariance avoid cancellation # from metre-scale absolute positions and millimetre-scale support. delta = np.where(reached[..., None], xyz-geometry.xyz[vu[:, 0], vu[:, 1]][:, None, None, :], 0) mean = delta.sum((1, 2))/count[:, None] covariance = np.einsum('nijk,nijl->nkl', delta, delta)/count[:, None, None] covariance -= mean[:, :, None]*mean[:, None, :] eigenvalues, eigenvectors = np.linalg.eigh(covariance) rank2 = eigenvalues[:, 1] > np.maximum(1e-16, eigenvalues[:, 2]*1e-8) unique = eigenvalues[:, 1]-eigenvalues[:, 0] > np.maximum(1e-16, eigenvalues[:, 2]*1e-8) good = rank2 & unique & np.isfinite(eigenvalues).all(1) _assign(geometry, vu[good], eigenvectors[good, :, 0], normals, valid) return normals, valid123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411"""Task 02-C offline CPU sweep. Run from repository root with WANDB_MODE=disabled.
GT is read by this evaluator only, after observation-only extraction. No changesto the production extractor, representation, tracker, sampling or graph modules."""import argparsefrom dataclasses import fieldsimport ctypes.utilimport globimport importlib.utilimport importlib.metadataimport jsonfrom pathlib import Pathimport platformimport shutilimport sys
import matplotlibmatplotlib.use('Agg')import matplotlib.pyplot as pltfrom matplotlib.patches import Patchimport numpy as npfrom scipy.sparse import csr_matrixfrom scipy.sparse.csgraph import maximum_bipartite_matchingfrom scipy.spatial import cKDTree
REPO = Path(__file__).resolve().parents[3]sys.path.insert(0, str(REPO))from utils.experiment_artifacts import digestsfrom utils.experiment_logger import ExperimentLoggerfrom visual.runtime.rgbd import PEG, BOX, iter_saved_rgbdfrom visual.runtime.test.normal_diagnostics import erode, dilate, endpoints, pose_rotation, rays, statsfrom visual.runtime.test.run_normal_comparison import real_truth, boundsfrom visual.runtime.test.run_normal_diagnostics import save_jsonfrom visual.runtime.test.structural_edges import METHODS, THRESHOLDS, compare
OBJECTS = {'peg': PEG, 'box': BOX}LABELS = {'baseline': 'A: baseline', 'fd2': 'B: FD 2px', 'pca5': 'C: PCA 5x5'}TOL_PX, TOL_M = 2., .003
def pcl_status(): return dict(status='NOT RUN', python_modules={m: importlib.util.find_spec(m) is not None for m in ('pcl', 'pclpy')}, libraries={m: ctypes.util.find_library(m) for m in ('pcl_common', 'pcl_features')}, headers=[p for root in ('/opt/homebrew/include', '/usr/local/include', '/usr/include') for p in glob.glob(root+'/pcl*/pcl/features/organized_edge_detection.h')], pkg_config=shutil.which('pkg-config'), installed_or_built=False, rgb_canny=False, reason='No usable PCL dependency on this host; no installation or binding attempted')
def raster_reference(mask, truth, intrinsic): vu = np.column_stack(np.nonzero(mask)) return vu[:, ::-1].astype(float), (rays(mask.shape, intrinsic)*truth['depth'][..., None])[mask]
def rim_reference(frame, gt, truth, legacy_region): """Physical line samples, visibility restricted by the unchanged Task02-A ROI.
At most one reference per rounded projected pixel. Samples must be within 1.5px of a GT-visible legacy rim surface AND within its 4mm physical gate. This is evaluation discretization, not sampling predicted structural points. """ if not legacy_region.any(): return np.empty((0, 2)), np.empty((0, 3)) s = frame.source_frame pose = gt['box_pose'][s] rot = pose_rotation(pose) centre = ((gt['box_hole_pose'][s, :3]-pose[:3]) @ rot)[1:] radius, half = float(gt['box_hole_radii']), float(gt['peg_half_sizes'][0]) segments = [] for axis, other, c, oc in ((1, 2, centre[0], centre[1]), (2, 1, centre[1], centre[0])): for sign in (-1, 1): p = np.zeros((2001, 3)); p[:, 0] = np.sign(truth['origin'][0])*half p[:, axis] = c+sign*radius p[:, other] = np.linspace(oc-radius, oc+radius, len(p)) segments.append(p) world_to_cv = np.linalg.inv(frame.cam2world) xyz = (np.concatenate(segments) @ rot.T+pose[:3]) @ world_to_cv[:3, :3].T+world_to_cv[:3, 3] xyz = xyz[xyz[:, 2] > 0] uv = xyz[:, :2]/xyz[:, 2:]*np.diag(frame.intrinsic)[:2]+frame.intrinsic[:2, 2]-.5 visible_uv, visible_xyz = raster_reference(legacy_region, truth, frame.intrinsic) distance, nearest = cKDTree(visible_uv).query(uv) keep = (distance <= 1.5) & (np.linalg.norm(xyz-visible_xyz[nearest], axis=1) <= .004) uv, xyz = uv[keep], xyz[keep] if not len(uv): return uv, xyz rounded = np.rint(uv).astype(int) # Choose the subpixel line point nearest its raster centre, deterministically. order = np.argsort(np.linalg.norm(uv-rounded, axis=1), kind='stable') _, unique = np.unique(rounded[order], axis=0, return_index=True) indices = order[unique] return uv[indices], xyz[indices]
class Matcher: """Whole observed support, no GT corridor restriction on predictions.
Tolerance matches require the SAME reference/prediction pair to satisfy both <=2px AND <=3mm. One-to-one maximum matching penalizes thick duplicate bands. Nearest 2D and nearest 3D errors are separately reported in both directions. """ def __init__(self, geometry, object_id, reference): self.support = np.flatnonzero(geometry.observed_mask(object_id)) vu = np.column_stack(np.unravel_index(self.support, geometry.valid_depth.shape)) self.uv, self.xyz = vu[:, ::-1], geometry.xyz.reshape(-1, 3)[self.support] self.ref_uv, self.ref_xyz = reference self.nref = len(self.ref_uv) self.near2 = np.full(len(vu), np.nan) self.near3 = self.near2.copy() if len(vu) and self.nref: self.near2 = cKDTree(self.ref_uv).query(self.uv)[0] self.near3 = cKDTree(self.ref_xyz).query(self.xyz)[0]*1000 matrix = cKDTree(self.uv).sparse_distance_matrix(cKDTree(self.ref_uv), TOL_PX, output_type='coo_matrix') ok = np.linalg.norm(self.xyz[matrix.row]-self.ref_xyz[matrix.col], axis=1) <= TOL_M self.adjacency = csr_matrix((np.ones(ok.sum(), bool), (matrix.row[ok], matrix.col[ok])), shape=(len(vu), self.nref)) else: self.adjacency = csr_matrix((len(vu), self.nref), dtype=bool)
def score(self, prediction, distances=False): choose = prediction.ravel()[self.support] adjacency = self.adjacency[choose] count = int(choose.sum()) tp = int(np.count_nonzero(adjacency.getnnz(axis=1))) hit = int(np.count_nonzero(adjacency.getnnz(axis=0))) one = int(np.count_nonzero(maximum_bipartite_matching(adjacency, perm_type='column') >= 0)) if count and self.nref else 0 row = dict(candidates=count, references=self.nref, matched_candidates=tp, covered_references=hit, one_to_one=one, candidates_without_visible_reference=count if not self.nref else 0) arrays = {} if distances: arrays = dict(candidate_to_gt_px=self.near2[choose], candidate_to_gt_mm=self.near3[choose]) arrays['gt_to_candidate_px'] = cKDTree(self.uv[choose]).query(self.ref_uv)[0] if count and self.nref else np.empty(0) arrays['gt_to_candidate_mm'] = cKDTree(self.xyz[choose]).query(self.ref_xyz)[0]*1000 if count and self.nref else np.empty(0) row['location'] = {k: stats(v) for k, v in arrays.items()} return row, arrays
def ratios(row): n, r = row['candidates'], row['references'] row.update(precision=row['matched_candidates']/n if n else None, recall=row['covered_references']/r if r else None, one_to_one_precision=row['one_to_one']/n if n else None, one_to_one_recall=row['one_to_one']/r if r else None, one_to_one_f1=2*row['one_to_one']/(n+r) if n+r else None) return row
class Pool: def __init__(self): self.items = {}
def add(self, key, row, arrays): item = self.items.setdefault(key, dict(counts={k: 0 for k in row if k != 'location'}, arrays={})) for k, v in row.items(): if k != 'location': item['counts'][k] += v for k, v in arrays.items(): item['arrays'].setdefault(k, []).append(v.astype(np.float32))
def summary(self): return {k: dict(**ratios(item['counts']), location={a: stats(np.concatenate(v)) for a, v in item['arrays'].items()}) for k, item in self.items.items()}
def negative_regions(regions, maps, reference, shape): # Exclude known physical structure neighbourhood before calling a boundary FP. raster = np.zeros(shape, bool) uv = np.rint(reference[0]).astype(int) inside = (uv[:, 0] >= 0) & (uv[:, 0] < shape[1]) & (uv[:, 1] >= 0) & (uv[:, 1] < shape[0]) uv = uv[inside]; raster[uv[:, 1], uv[:, 0]] = True away = ~dilate(raster, 3) result = {k: regions[k] & away for k in ('silhouette_2px', 'occlusion_2px', 'same_plane_tracker_cut_2px', 'invalid_depth_2px')} if 'robot_occlusion_2px' in regions: result['robot_occlusion_2px'] = regions['robot_occlusion_2px'] & away result['contamination'] = regions['contamination'] & away if 'plane_interior' in regions: result['plane_interior'] = regions['plane_interior'] & away return result
def comparison_plot(output, frame, evidence, regions, maps, references): union_mask = frame.masks[PEG] | frame.masks[BOX] views = [('Full image', None, (0, frame.depth.shape[1]-1, frame.depth.shape[0]-1, 0)), ('Peg', PEG, bounds(regions['peg']['gt_visible'], union_mask)), ('Box / physical hole entrance', BOX, bounds(regions['box']['hole_rim'], regions['box']['gt_visible'], 12))] colors = dict(orientation='#ff3939', depth='#ffba18', occluding='#d737ef', occluded='#29c5ff', invalid='#ffffff', mask='#67e535') fig, axes = plt.subplots(3, 4, figsize=(19, 13), constrained_layout=True) for row, (view, oid, extent) in enumerate(views): for col in range(4): ax = axes[row, col]; ax.imshow(frame.rgb) if col == 0: for name in OBJECTS: uv = references[name]['all'][0] ax.scatter(uv[:, 0], uv[:, 1], s=3, c='#ffff00', linewidths=0) for cause, color in (('occlusion', '#d737ef'), ('cut', '#67e535')): v, u = np.nonzero(maps[name][cause]); ax.scatter(u, v, s=3, c=color, linewidths=0) ax.set_title(view+' | GT only (yellow structure)') else: method = METHODS[col-1] for i in OBJECTS.values() if oid is None else (oid,): candidates = evidence[method][i].candidates(20) for cause, color in colors.items(): v, u = np.nonzero(candidates[cause]) if cause in ('depth', 'mask'): ax.scatter(u, v, s=14 if cause == 'depth' else 8, marker='s' if cause == 'depth' else 'o', facecolors='none', edgecolors=color, linewidths=.45) else: ax.scatter(u, v, s=3, c=color, linewidths=0) ax.set_title(LABELS[method]+' | angle >20 deg') ax.set_xlim(extent[:2]); ax.set_ylim(extent[2:]); ax.set_aspect('equal') ax.set_xlabel('source u (px)'); ax.set_ylabel('source v (px)') fig.legend(handles=[Patch(color=c, label=k) for k, c in colors.items()], loc='outside lower center', ncol=6) fig.suptitle(f'Source {frame.source_frame}: same crop / CV source pixels. Colours are diagnostic; causes overlap.\nNear/far depth order is potential occlusion only; mask/occlusion is not a structural label.') fig.savefig(output/f'f{frame.source_frame:04d}_comparison.png', dpi=135); plt.close(fig)
def sweep_plot(output, summary): fig, axes = plt.subplots(2, 3, figsize=(17, 10), constrained_layout=True) for method in METHODS: for channel, style in (('union', '-'), ('orientation', '--')): rows = [summary[f'{method}/{channel}/{t}/all'] for t in THRESHOLDS] axes[0, 0].plot([r['recall'] for r in rows], [r['precision'] for r in rows], style, marker='.', label=LABELS[method]+' '+channel) axes[0, 1].plot([r['one_to_one_recall'] for r in rows], [r['one_to_one_precision'] for r in rows], style, marker='.') rows = [summary[f'{method}/union/{t}/all'] for t in THRESHOLDS] axes[0, 2].plot(THRESHOLDS[:-1], [r['candidates'] for r in rows[:-1]], marker='.', label=LABELS[method]) for ax, key in zip(axes[1], ('peg_seam', 'box_rim', 'peg_plane')): if key == 'peg_plane': y = [summary[f'{method}/union/{t}/negative/peg/plane_interior']['rate'] for t in THRESHOLDS] else: y = [summary[f'{method}/union/{t}/{key}']['recall'] for t in THRESHOLDS] ax.plot(THRESHOLDS[:-1], y[:-1], marker='.', label=LABELS[method]); ax.set_title(key); ax.set_xlabel('angle threshold (deg)') axes[0, 0].set(xlabel='coverage / recall', ylabel='candidate precision', title='Whole support: <=2px AND <=3mm') axes[0, 1].set(xlabel='one-to-one recall', ylabel='one-to-one precision', title='Maximum one-to-one matching') axes[0, 2].set(xlabel='angle threshold (deg)', ylabel='candidates / 121 frames', title='Density (depth-only at 180 in JSON)') for ax in axes.flat: ax.grid(alpha=.25) axes[0, 0].legend(fontsize=8); axes[0, 2].legend(fontsize=8) fig.savefig(output/'tradeoffs.png', dpi=140); plt.close(fig)
def density_plot(output, density, shape): fig, axes = plt.subplots(2, 3, figsize=(14, 8), constrained_layout=True) vmax = max(max(v['grid_8x8'][i][j] for i in range(8) for j in range(8)) for k, v in density.items() if '/union/20/' in k) for row, name in enumerate(OBJECTS): for col, method in enumerate(METHODS): d = density[f'{method}/union/20/{name}']; ax = axes[row, col] im = ax.imshow(d['grid_8x8'], extent=(0, shape[1], shape[0], 0), vmin=0, vmax=vmax, cmap='magma') fraction = f'{d["fraction"]:.1%}' if d['fraction'] is not None else 'no observation' ax.set(title=f'{LABELS[method]} {name}: {fraction}', xlabel='source u (px)', ylabel='source v (px)') fig.colorbar(im, ax=axes, label='Candidate pixel-frames per image tile (8x8 grid); same scale') fig.savefig(output/'density.png', dpi=140); plt.close(fig)
def evaluate(episode_path, masks_path, output_root, camera='base_camera', selected=(0, 15, 45, 80, 120)): episode_path, masks_path = Path(episode_path).resolve(), Path(masks_path).resolve() with np.load(episode_path, allow_pickle=False) as archive: required = [f'{camera}/seg', 'peg_id', 'box_id', 'peg_pose', 'box_pose', 'box_hole_pose', 'peg_half_sizes', 'box_hole_radii', 'seed'] if set(required)-set(archive.files): raise ValueError('GT fields missing') gt = {k: archive[k] for k in required} with np.load(masks_path, allow_pickle=False) as archive: sources = archive['source_frame'] if not np.array_equal(sources, np.arange(len(gt[f'{camera}/seg']))): raise ValueError('Task02-C requires every episode frame exactly once in source order') tracker_meta = masks_path.with_name('tracking.json') if tracker_meta.exists(): track = json.loads(tracker_meta.read_text()) if track.get('camera', camera) != camera: raise ValueError('tracker camera mismatch') track_input = Path(track.get('input') or episode_path) if track_input.exists() and digests(track_input)[1] != digests(episode_path)[1]: raise ValueError('tracker episode mismatch') segmap_path = episode_path.with_name('segmentation_id_map.json') segmap = json.loads(segmap_path.read_text()) if segmap_path.exists() else {} robot_ids = [int(k) for k, v in segmap.items() if v.startswith('panda_')] config = dict(task='02-C', input=str(episode_path), masks=str(masks_path), camera=camera, input_sha256=digests(episode_path)[1], masks_sha256=digests(masks_path)[1], methods=METHODS, angle_thresholds_deg=THRESHOLDS, depth_gate_abs_m=.01, depth_gate_rel=.02, tolerance_px=TOL_PX, tolerance_m=TOL_M, pcl=pcl_status(), seed=int(gt['seed']), device='cpu', python=platform.python_version(), numpy=np.__version__, platform=platform.platform(), scipy=importlib.metadata.version('scipy'), matplotlib=matplotlib.__version__, rgb_canny=False, gt_detector_input=False, full_resolution=True, robot_segmentation_ids=robot_ids, segmentation_map_sha256=digests(segmap_path)[1] if segmap else None, selected_sources=selected, timing='warmup excluded; rotated order; both objects; shared XYZ charged to each; no I/O, GT, sweep or plotting', source_sha256={str(p.relative_to(REPO)): digests(p)[1] for p in [Path(__file__), Path(__file__).with_name('structural_edges.py'), REPO/'visual/runtime/geometry.py', Path(__file__).with_name('normal_estimators.py'), Path(__file__).with_name('normal_diagnostics.py'), Path(__file__).with_name('run_normal_comparison.py')]}) with ExperimentLogger(team='visual', config=config, seed=int(gt['seed']), model='task02c_structural_edges', job_type='evaluate') as logger: output = Path(output_root).resolve()/logger.run_id; output.mkdir(parents=True, exist_ok=False) print('Output:', output, flush=True) for source in config['source_sha256']: destination = output/'evaluated_source'/source destination.parent.mkdir(parents=True, exist_ok=True) shutil.copyfile(REPO/source, destination) pool, negative, records, density, legacy_rim = Pool(), {}, [], {}, {} iterator = iter_saved_rgbd(episode_path, masks_path, camera=camera) for index, frame in enumerate(iterator): if index == 0: compare(frame) # one warmup per method results, evidence = compare(frame, index) truths, regions, maps = real_truth(frame, results['baseline'], gt, camera) for name in OBJECTS: robot_occluder = (np.isin(gt[f'{camera}/seg'][frame.source_frame], robot_ids) & np.isfinite(truths[name]['depth']) & results['baseline'].geometry.valid_depth & (frame.depth < truths[name]['depth']-.0015)) regions[name]['robot_occlusion_2px'] = (dilate(endpoints(regions[name]['gt_visible'], robot_occluder), 2) & regions[name]['gt_visible']) references, matchers, negatives = {}, {}, {} record = dict(source_frame=frame.source_frame, methods={}, gt={}, observations={}) for name, oid in OBJECTS.items(): references[name] = {'seam': raster_reference(maps[name]['seam'], truths[name], frame.intrinsic)} if name == 'box': references[name]['rim'] = rim_reference(frame, gt, truths[name], regions[name]['hole_rim']) # Additional box plane control; fixed face-wise erosion, no new GT detector input. regions[name]['plane_interior'] = np.logical_or.reduce([erode(regions[name]['gt_visible'] & (truths[name]['face'] == f), 3) for f in range(6)]) regions[name]['plane_interior'] &= ~dilate(regions[name]['hole_rim'], 4) references[name]['all'] = tuple(np.concatenate([r[k] for r in references[name].values()]) for k in (0, 1)) _, unique = np.unique(np.rint(references[name]['all'][0]).astype(int), axis=0, return_index=True) references[name]['all'] = tuple(x[unique] for x in references[name]['all']) matchers[name] = {key: Matcher(results['baseline'].geometry, oid, ref) for key, ref in references[name].items()} negatives[name] = negative_regions(regions[name], maps[name], references[name]['all'], frame.depth.shape) record['gt'][name] = {k: len(v[0]) for k, v in references[name].items()} if name == 'box': record['gt'][name]['legacy_rim_band'] = int(regions[name]['hole_rim'].sum()) f = results['baseline'].objects[oid] record['observations'][name] = dict(mask=int(f.object_mask.sum()), points=int(f.valid_points.sum()), gt_visible=int(regions[name]['gt_visible'].sum()), contamination=int((f.valid_points & regions[name]['contamination']).sum()), legacy_rim_observed=int((f.valid_points & regions[name].get('hole_rim', np.zeros_like(f.valid_points))).sum())) for method in METHODS: record['methods'][method] = dict(timing_ms=results[method].timings_ms, thresholds={}) for threshold in THRESHOLDS: detail = {} for name, oid in OBJECTS.items(): candidates = evidence[method][oid].candidates(threshold) f = results[method].objects[oid] # Full-raster equivalence to the requested original union. expected = f.valid_points & (f.depth_discontinuity | (np.rad2deg(f.normal_variation_rad) > threshold)) if not np.array_equal(candidates['union'], expected): raise AssertionError('pair union differs from original feature maps') for channel in ('union', 'orientation'): prediction = candidates[channel] key = f'{method}/{channel}/{threshold}' for target, matcher in matchers[name].items(): row, arrays = matcher.score(prediction, distances=threshold in (10, 20, 30)) label = name+'_'+target if target != 'all' else 'all' pool.add(key+'/'+label, row, arrays) detail[name+'/'+target+'/'+channel] = row if name == 'box': lr = legacy_rim.setdefault(key, dict(gt_band=0, observed_band=0, detected_band=0)) rim = regions[name]['hole_rim'] lr['gt_band'] += int(rim.sum()); lr['observed_band'] += int((rim & f.valid_points).sum()) lr['detected_band'] += int((rim & prediction).sum()) for region, mask in negatives[name].items(): supported = mask & f.valid_points nr = negative.setdefault(key+'/negative/'+name+'/'+region, dict(points=0, candidates=0)) nr['points'] += int(supported.sum()); nr['candidates'] += int((supported & prediction).sum()) detail[name+'/negative/'+region+'/'+channel] = dict(points=int(supported.sum()), candidates=int((supported & prediction).sum())) v, u = np.nonzero(prediction) grid = np.histogram2d(v, u, bins=(8, 8), range=((0, frame.depth.shape[0]), (0, frame.depth.shape[1])))[0].astype(int) den = density.setdefault(key+'/'+name, dict(observed=0, candidates=0, grid_8x8=np.zeros((8, 8), int))) den['observed'] += int(f.valid_points.sum()); den['candidates'] += len(v); den['grid_8x8'] += grid if threshold == 20: detail[name+'/causes'] = {k: int(v.sum()) for k, v in candidates.items()} record['methods'][method]['thresholds'][str(threshold)] = detail if frame.source_frame in selected: comparison_plot(output, frame, evidence, regions, maps, references) # Every frame's pair evidence is preserved, not just selected plots. arrays = dict(source_frame=np.array(frame.source_frame), shape=np.array(frame.depth.shape), intrinsic=frame.intrinsic) for method in METHODS: for name, oid in OBJECTS.items(): pair = evidence[method][oid] for field in fields(pair): arrays[f'{method}/{name}/{field.name}'] = getattr(pair, field.name) if frame.source_frame in selected: arrays.update({f'{method}/{name}/candidate20/{k}': v for k, v in pair.candidates(20).items()}) if frame.source_frame in selected: for name in OBJECTS: arrays.update({f'evaluation/{name}/{k}': v for k, v in regions[name].items()}) for target, ref in references[name].items(): arrays[f'evaluation/{name}/{target}_uv'] = ref[0]; arrays[f'evaluation/{name}/{target}_xyz'] = ref[1] arrays['depth_m'] = frame.depth np.savez_compressed(output/f'f{frame.source_frame:04d}_pairs.npz', **arrays) records.append(record) if index % 10 == 0: print(f'Frames {index+1}/{len(sources)}', flush=True) summary = pool.summary() summary.update({k: dict(**v, rate=v['candidates']/v['points'] if v['points'] else None) for k, v in negative.items()}) density = {k: dict(observed=v['observed'], candidates=v['candidates'], grid_8x8=v['grid_8x8'].tolist(), fraction=v['candidates']/v['observed'] if v['observed'] else None) for k, v in density.items()} legacy_rim = {k: dict(**v, coverage=v['detected_band']/v['gt_band'] if v['gt_band'] else None) for k, v in legacy_rim.items()} latency = {m: {k: stats([r['methods'][m]['timing_ms'][k] for r in records]) for k in records[0]['methods'][m]['timing_ms']} for m in METHODS} data = dict(run_id=logger.run_id, config=config, evaluated_frames=len(records), git_commit=logger.metadata['git_commit'], git_dirty=logger.metadata['git_dirty'], summary=summary, density=density, legacy_rim=legacy_rim, latency_ms=latency, frames=records) save_json(output/'comparison.json', data) sweep_plot(output, summary) density_plot(output, density, frame.depth.shape) body = ''.join(f'<p><a href="{p.name}"><img src="{p.name}"></a></p>' for p in [output/'tradeoffs.png', output/'density.png']+[output/f'f{s:04d}_comparison.png' for s in selected]) (output/'comparison.html').write_text(f'''<!doctype html><html><meta charset="utf-8"><title>Task02-C</title><style>body{{font:15px system-ui;max-width:1800px;margin:24px auto}}img{{width:100%}}</style><h1>Task 02-C — structural edge candidate comparison</h1><p>Run {logger.run_id}; all {len(records)} frames; CPU only.<a href="comparison.json">Full sweep / counts / errors / latency / density / frame metrics</a>.</p><p>PCL: NOT RUN (absent). RGB Canny: disabled. GT never used by detectors. Union is a proposal, not a structural class.Whole-support precision uses <=2px AND <=3mm to visible physical references, without GT corridor filtering.One-to-one matching additionally penalizes thick bands. Errors to GT are conditional on references being visible;empty predictions still give zero recall. Curves sweep angle while preserving the original depth gate and normal support.Rim line samples use the unchanged visible physical rim ROI for visibility; legacy band coverage remains in JSON.No independent episode or final production threshold selection. Colours are debugging only; causes overlap.</p>{body}</html>''', encoding='utf-8') for p in sorted(p for p in output.rglob('*') if p.is_file()): logger.link_output(p, kind='metrics' if p.suffix == '.json' else 'trajectory' if p.suffix == '.npz' else 'reports') logger.log({m: summary[f'{m}/union/20/all'] for m in METHODS}, prefix='eval/task02c') logger.record(evaluated_frames=len(records), evaluation_device='cpu', gpu_executed=False, pcl_executed=False, dataset_sha256=config['input_sha256'], masks_sha256=config['masks_sha256']) return output
if __name__ == '__main__': parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--input', type=Path, default=REPO/'visual/data/step2/ep000.npz') parser.add_argument('--masks', type=Path, default=REPO/'visual/results/runtime_tracking/ep000/masks.npz') parser.add_argument('--camera', default='base_camera') parser.add_argument('--out', type=Path, default=REPO/'visual/results/structural_edges') args = parser.parse_args() print(evaluate(args.input, args.masks, args.out, args.camera))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173{ "artifacts": [ { "kind": "metrics", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/56dc24637d0733bdaaddc66035878887262b1aa7c8a20dbf9374a1e0d027e0b5/metrics.json", "sha256": "56dc24637d0733bdaaddc66035878887262b1aa7c8a20dbf9374a1e0d027e0b5", "size": 7487 }, { "kind": "metrics", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/50dd45bb896a33f557ee2b3fee7067efb155f1880697a16150812010b7c91889/comparison.json", "sha256": "50dd45bb896a33f557ee2b3fee7067efb155f1880697a16150812010b7c91889", "size": 41873898 }, { "kind": "metrics", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/806ab1291d77d498cd010a8d22d778b0fbec76fdeda39d3775fcb0b73ef80910/verification.json", "sha256": "806ab1291d77d498cd010a8d22d778b0fbec76fdeda39d3775fcb0b73ef80910", "size": 5035 }, { "kind": "metrics", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/b068b4b13bfc8cd2ff263e9a461f25b7fdb9f2b647829613520aa34c850bc9cd/preservation_before.json", "sha256": "b068b4b13bfc8cd2ff263e9a461f25b7fdb9f2b647829613520aa34c850bc9cd", "size": 58381 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/2d0892471283262e321f0d5e30dab16bb902e955558ab82c7a8913e348a03340/comparison.html", "sha256": "2d0892471283262e321f0d5e30dab16bb902e955558ab82c7a8913e348a03340", "size": 1565 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/c40d64645f27a5a8956b1fa647ff9a11e278963f583541328662e1884b3a5a1f/density.png", "sha256": "c40d64645f27a5a8956b1fa647ff9a11e278963f583541328662e1884b3a5a1f", "size": 126581 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9/geometry.py", "sha256": "36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9", "size": 11385 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc/normal_diagnostics.py", "sha256": "d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc", "size": 14687 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262/normal_estimators.py", "sha256": "e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262", "size": 6525 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b/run_normal_comparison.py", "sha256": "b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b", "size": 28566 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe/run_structural_edges.py", "sha256": "eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe", "size": 28118 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80/structural_edges.py", "sha256": "5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80", "size": 6297 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/da90f19e3af5dd4b1c79795544d44c673ca0da54f30575acfd9e236f1bf15212/f0000_comparison.png", "sha256": "da90f19e3af5dd4b1c79795544d44c673ca0da54f30575acfd9e236f1bf15212", "size": 1651473 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/65b6e73cbbe0752efc2b2085609c628d73ac9c919261efdcf9fb3fba73885bca/f0015_comparison.png", "sha256": "65b6e73cbbe0752efc2b2085609c628d73ac9c919261efdcf9fb3fba73885bca", "size": 1803987 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/835b9c5fe215e9295a9c029e3bfee8ed0a6887d72d257754bf1a0b77c1e6663d/f0045_comparison.png", "sha256": "835b9c5fe215e9295a9c029e3bfee8ed0a6887d72d257754bf1a0b77c1e6663d", "size": 1292375 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/6ec93af458d5ef898542eea6aa610073d4123a497f478704f0ac4402bc3992ee/f0080_comparison.png", "sha256": "6ec93af458d5ef898542eea6aa610073d4123a497f478704f0ac4402bc3992ee", "size": 1475164 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/af2a7593f05b8b80c8dec190fa5e7f34313155b370c0892df9427769776697be/f0120_comparison.png", "sha256": "af2a7593f05b8b80c8dec190fa5e7f34313155b370c0892df9427769776697be", "size": 1258185 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/47804e84d5d6d1a253d91dc60760eebeb8db708087e9c679c700f5f794022f14/tradeoffs.png", "sha256": "47804e84d5d6d1a253d91dc60760eebeb8db708087e9c679c700f5f794022f14", "size": 363093 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/ca56344eced8d5798c9da8732c5a0a3246226aec45e830555f3a00965a2b620c/implementation.patch", "sha256": "ca56344eced8d5798c9da8732c5a0a3246226aec45e830555f3a00965a2b620c", "size": 70273 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c/baseline_document_before_task02c.md", "sha256": "b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c", "size": 26127 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/51636409d76284041db14a047c1660b57d58bb695931d2b54b99f1542b31a2b8/02c_structural_edges.md", "sha256": "51636409d76284041db14a047c1660b57d58bb695931d2b54b99f1542b31a2b8", "size": 25088 }, { "kind": "reports", "path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3/report-b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3.zip", "sha256": "b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3", "size": 116434894 } ], "config_path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/config/84a8bfd13a052ce1a7a804639994c19349309bea0e3099b111d7b11466ce6cfc/config.yaml", "environment": null, "episode_metadata_paths": [], "git_commit": "366e9ce4b1510926449fc7c51765ac72849b16c4", "git_dirty": true, "metrics_path": "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/56dc24637d0733bdaaddc66035878887262b1aa7c8a20dbf9374a1e0d027e0b5/metrics.json", "model_name": "task02c_structural_edges", "random_seed": 0, "report_paths": [ "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/2d0892471283262e321f0d5e30dab16bb902e955558ab82c7a8913e348a03340/comparison.html", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/c40d64645f27a5a8956b1fa647ff9a11e278963f583541328662e1884b3a5a1f/density.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9/geometry.py", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc/normal_diagnostics.py", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262/normal_estimators.py", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b/run_normal_comparison.py", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe/run_structural_edges.py", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80/structural_edges.py", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/da90f19e3af5dd4b1c79795544d44c673ca0da54f30575acfd9e236f1bf15212/f0000_comparison.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/65b6e73cbbe0752efc2b2085609c628d73ac9c919261efdcf9fb3fba73885bca/f0015_comparison.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/835b9c5fe215e9295a9c029e3bfee8ed0a6887d72d257754bf1a0b77c1e6663d/f0045_comparison.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/6ec93af458d5ef898542eea6aa610073d4123a497f478704f0ac4402bc3992ee/f0080_comparison.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/af2a7593f05b8b80c8dec190fa5e7f34313155b370c0892df9427769776697be/f0120_comparison.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/47804e84d5d6d1a253d91dc60760eebeb8db708087e9c679c700f5f794022f14/tradeoffs.png", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/ca56344eced8d5798c9da8732c5a0a3246226aec45e830555f3a00965a2b620c/implementation.patch", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c/baseline_document_before_task02c.md", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/51636409d76284041db14a047c1660b57d58bb695931d2b54b99f1542b31a2b8/02c_structural_edges.md", "visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3/report-b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3.zip" ], "run_id": "b622e76deceb419ab9c5aa80a8f8280c", "schema_version": 1, "selection": [ "metrics", "reports" ], "task": null, "team": "visual", "wandb_run_id": "b622e76deceb419ab9c5aa80a8f8280c"}.gitattributes+1
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/config/84a8bfd13a052ce1a7a804639994c19349309bea0e3099b111d7b11466ce6cfc/config.yamlAdded+88
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/50dd45bb896a33f557ee2b3fee7067efb155f1880697a16150812010b7c91889/comparison.jsonAdded+3
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/56dc24637d0733bdaaddc66035878887262b1aa7c8a20dbf9374a1e0d027e0b5/metrics.jsonAdded+113
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/806ab1291d77d498cd010a8d22d778b0fbec76fdeda39d3775fcb0b73ef80910/verification.jsonAdded+254
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/metrics/b068b4b13bfc8cd2ff263e9a461f25b7fdb9f2b647829613520aa34c850bc9cd/preservation_before.jsonAdded+374
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/2d0892471283262e321f0d5e30dab16bb902e955558ab82c7a8913e348a03340/comparison.htmlAdded+10
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/36d20b7873d5ef9e1381e3bbe319da89e16fa5b44455488786dadd250bd814a9/geometry.pyAdded+255
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/47804e84d5d6d1a253d91dc60760eebeb8db708087e9c679c700f5f794022f14/tradeoffs.pngAdded

Large File Pointer Details
- SHA256: 47804e84d5d6d1a253d91dc60760eebeb8db708087e9c679c700f5f794022f14
- Pointer size: 131 Bytes
- Size of remote file: 363 kB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/51636409d76284041db14a047c1660b57d58bb695931d2b54b99f1542b31a2b8/02c_structural_edges.mdAdded+360
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/5226bd830aefeaeb0407412aa77faa26127ee14e4c0a350c75b3831644b21b80/structural_edges.pyAdded+126
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/65b6e73cbbe0752efc2b2085609c628d73ac9c919261efdcf9fb3fba73885bca/f0015_comparison.pngAdded

Large File Pointer Details
- SHA256: 65b6e73cbbe0752efc2b2085609c628d73ac9c919261efdcf9fb3fba73885bca
- Pointer size: 132 Bytes
- Size of remote file: 1.8 MB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/6ec93af458d5ef898542eea6aa610073d4123a497f478704f0ac4402bc3992ee/f0080_comparison.pngAdded

Large File Pointer Details
- SHA256: 6ec93af458d5ef898542eea6aa610073d4123a497f478704f0ac4402bc3992ee
- Pointer size: 132 Bytes
- Size of remote file: 1.48 MB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/835b9c5fe215e9295a9c029e3bfee8ed0a6887d72d257754bf1a0b77c1e6663d/f0045_comparison.pngAdded

Large File Pointer Details
- SHA256: 835b9c5fe215e9295a9c029e3bfee8ed0a6887d72d257754bf1a0b77c1e6663d
- Pointer size: 132 Bytes
- Size of remote file: 1.29 MB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/af2a7593f05b8b80c8dec190fa5e7f34313155b370c0892df9427769776697be/f0120_comparison.pngAdded

Large File Pointer Details
- SHA256: af2a7593f05b8b80c8dec190fa5e7f34313155b370c0892df9427769776697be
- Pointer size: 132 Bytes
- Size of remote file: 1.26 MB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3b0180be7823f56d76565bb9102426f9f7661f8a1bb222d47baa7c6d35b436c/baseline_document_before_task02c.mdAdded+376
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b3caa29120144be1affbd8b9329b95ae24750ff3bd7736832cc2e69bc9e1816b/run_normal_comparison.pyAdded+453
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3/report-b482be23e8cf3fd90d91296db55d060539ded17c044af4c925483cd7bc0938f3.zipAdded+3
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/c40d64645f27a5a8956b1fa647ff9a11e278963f583541328662e1884b3a5a1f/density.pngAdded

Large File Pointer Details
- SHA256: c40d64645f27a5a8956b1fa647ff9a11e278963f583541328662e1884b3a5a1f
- Pointer size: 131 Bytes
- Size of remote file: 127 kB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/ca56344eced8d5798c9da8732c5a0a3246226aec45e830555f3a00965a2b620c/implementation.patchAdded+1071
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/d3da4f81a2452a9e11c4781ade557af5baeed96a2593876fdda768efb89ffddc/normal_diagnostics.pyAdded+303
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/da90f19e3af5dd4b1c79795544d44c673ca0da54f30575acfd9e236f1bf15212/f0000_comparison.pngAdded

Large File Pointer Details
- SHA256: da90f19e3af5dd4b1c79795544d44c673ca0da54f30575acfd9e236f1bf15212
- Pointer size: 132 Bytes
- Size of remote file: 1.65 MB
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/e5d2b32164e8c16fbabc473a1cc3f386394ac2fda6c65469d9a054c32c52a262/normal_estimators.pyAdded+130
visual/b622e76deceb419ab9c5aa80a8f8280c/artifacts/reports/eb123019b2606a37d9c629aac7c4e3f2a77c14b577141485cb7e1a94b117e2fe/run_structural_edges.pyAdded+411
visual/b622e76deceb419ab9c5aa80a8f8280c/manifests/e509ce52bf751eaefd5a6f1ec66b0f688d5fff244fee580732f92a3fff546ccd/manifest.jsonAdded+173