Skip to content

Releases

v3.2.0rc3 · Oriented texture tracking

Pre-release

Choose a tag to compare

@hughlv hughlv released this 03 Dec 17:18

This prerelease adds direction-consistent texture edges to the registered RGB-D tracker. To use it with a textured object, construct MultiviewRgbdBackend(edge_refinement="oriented_texture", volumetric_anchor=False). The default configuration continues to use mixed edges and a volumetric anchor.

Across all nine reference-mask YCBInEOAT development recordings the optional mode achieved 0.8932 mean ADD AUC, compared with 0.8864 for the default and 0.8499 for archived BundleTrack. It exceeded BundleTrack on 7/9 recordings. Two recordings informed design. The other seven averaged 0.8827 with the fixed mode versus 0.8377 for BundleTrack. Missed poses contribute zero.

Both SDK configurations ran twice on one shared RTX 4090 D. The median of the nine sequence-level update p95 values was 20.5 ms for texture mode and 29.6 ms for the default. BundleTrack used a different GPU. These measurements cover tracking updates on recorded video.

Per-recording results and reproduction commands · Benchmark page

Same-T4 benchmark addendum

All three trackers subsequently ran on the same Colab Tesla T4. On the nine complete YCBInEOAT reference-mask recordings, mean ADD AUC was 0.8864 for the SDK default, 0.8932 for oriented texture and 0.8568 for the rebuilt tracking-only BundleTrack comparator. BundleTrack’s per-recording update p95 was 1.97–5.17× the oriented tracker’s across 7,412 matched updates. Same-device scores, per-frame timings and trajectories · Updated manuscript

Subsequent SIRA dispatch study on main

Three simulator policies followed both scripted operator edits. When cylinder orientation was ambiguous, a fresh object read issued 6 incorrect off-axis commands in 30 trials. Full reassessment and dependency revalidation each issued 21 commands with zero wrong releases and withheld 3 targets that would have succeeded. Dependency revalidation avoided three reassessments when an unrelated object moved. These ten conditions repeat one simulated workcell. Paired decisions and endpoint measurements · Revised manuscript on main

EvidenceScene v3.2.0rc2

Pre-release

Choose a tag to compare

@hughlv hughlv released this 03 Dec 16:21

The shared spatial runtime now rejects stale observation timestamps and unsupported spatial tasks. Coordinate picks must find a measured sample within 28 mm, and assessments with insufficient evidence withhold the target. Live clients should send the displayed cursor when selecting and the sensor clock time when revalidating. Rig observability uses measured cross-camera support.

On 100 alternating paired replays of one decoded two-camera simulator capture, input-to-revalidation p95 fell from 56.76 to 27.40 ms. Geometry, color, support and selected coordinates matched in every pair. In a separate local TRAX integration trial, 40 scripted browser clicks through planner revalidation took 61.75 ms at p95. All 40 stale clicks were rejected.

On two reference-mask YCBInEOAT development recordings the SDK scored 0.9173 and 0.8507 ADD AUC. Masked Open3D hybrid odometry returned fewer accurate poses and ran faster in the same-GPU test. Archived BundleTrack scores on the same inputs were 0.9384 and 0.8462.

Benchmark records and protocols · Integration guide

The wheel targets CPython 3.12 on Linux x86-64. The source archive supports other supported Python builds. Downloads include the manuscript and SHA-256 checksums.

EvidenceScene v3.2.0rc1

Pre-release

Choose a tag to compare

@hughlv hughlv released this 03 Dec 07:02

The v3.2 release candidate lets a viewer and a planning agent work from the same measured target. Both use one EvidenceSceneRuntime. The application owns the viewer, transport and robot commands.

Operator and agent handoff

  • A viewer calls surface_target_view(entity_id) to get indexed vertices in the scene frame, their observation IDs, their geometry version and the scene cursor. Send that cursor to select_surface_target when the operator clicks. An outdated cursor raises RevisionConflict, so the application can refresh before accepting another click.
  • An agent can assess the exact selection commit and revalidate it immediately before use. A revised selection invalidates the old plan. If tracking is lost, the agent can see the reported reason. Completed assessments can release their pinned snapshots with release_assessment.
  • Selected-point assessment uses the tracked entity's pose convention to evaluate whether the position is observable. A reset clears camera and observation metadata along with the scene. Readers receive detached JSON payloads for camera and surfel data.

Run evidencescene scene-handoff --interactive to select two vertices on a synthetic RGB-D tabletop. Run evidencescene scene-handoff for the same workflow as a scripted JSON trace. A separate SO-101 simulator study measured the arm's distance to a revised inspection goal in TRAX. SDK example · Six TRAX runs

The updated paper reports the viewer and agent handoff, all six simulator runs, and the two candidate tracking replays.

Tracking evidence

The candidate includes opt-in overlap and correspondence checks for volumetric fusion. On two YCB development recordings, the correspondence check improved cracker-box reorientation ADD AUC from 0.9173 to 0.9295 and reduced sugar-box YaleHand ADD AUC from 0.8507 to 0.8333. The default fusion-gate setting stays off. Full-suite candidate accuracy and speed against BundleTrack remain unverified. Paired replay measurements · Comparison protocol

A fresh run of the default tracker reproduced the earlier default trajectory hashes on both recordings. On a shared RTX 4090 D the p95 tracking update took 35.8 ms for cracker-box reorientation and 34.3 ms for sugar-box YaleHand. The tracker returned a pose on all 1,375 scored frames. Candidate measurements and input hashes

The attached wheel targets CPython 3.12 on Linux x86-64. The source distribution supports building on other supported configurations. Verify downloads with sha256sum -c SHA256SUMS.txt.

EvidenceScene v3.1.0

Choose a tag to compare

@hughlv hughlv released this 03 Dec 06:59

Release Date: 2026-12-03

evidencescene v3.1.0 completes the transition to a 100% Apache-2.0, zero-checkpoint pure-sensor RGB-D 6-DoF pose tracking and revisioned spatial state runtime:

  • Unifies the shared spatial state runtime (EvidenceSceneRuntime, SceneStore, revisioned pose/geometry/selection dependency checks) with the pure-sensor CPU/CUDA multiview RGB-D pose tracker (MultiviewRgbdBackend).
  • Adds a dual CPU/CUDA cuBLAS-free $72^3$ object-frame Lab+TSDF VolumetricAnchor (evidencescene/tracking/_volumetric_anchor.py) that lifts Laval clock-hard by +0.06238 AUC to 0.90749, superseding both fresh online BundleTrack (0.88002) and archived T4 BundleTrack (0.89356), and winning all 3/3 Laval Vicon sequences (0.90627 mean vs. 0.87261, 701/701 poses, 0 errors $>90^\circ$).
  • Completely removes non-commercial native/bundletrack/ and evidencescene/tracking/pinned_bundletrack_runner.py (-20,185 lines) so the entire shipped repository and package are cleanly Apache-2.0 licensed.
  • Verifies all four public benchmark tiers on Google Colab NVIDIA L4 at frozen commit ac9b4fee (archived in benchmarks/receipts/v3.1-colab-l4/) and updates the manuscript (papers/evidencescene/evidencescene.pdf).

What's New

1. Pure-Sensor MultiviewRgbdBackend with Dual CPU/CUDA VolumetricAnchor

  • Coupled 3D surface-normal ICP + Sparse Flow + Edge Refinement + Volumetric Anchor: evidencescene/tracking/_volumetric_anchor.py maintains an incremental $72^3$ object-frame TSDF and Lab luminance/chrominance field with across-view variance weighting, tangential gradient projection, Schur-complemented per-frame bias removal, and up to 3 early-exit Gauss–Newton iterations.
  • Zero libcublas / Neural Checkpoint Dependency: All CuPy matrix reductions avoid cuBLAS (@), enabling clean CUDA execution across CUDA 12/13 environments without extra external libraries or model weights.
  • OpenCV 4.x / 5.x Portability: Masks are explicitly normalized to contiguous uint8 before cv2.erode (ac9b4fee).
  • Revision-Aware Flow Poses & Pure-Sensor Initialization: Merges v3.1/es-6bo, v3.1/es-6bo-pure-sensor, and experiment/revisable-flow-poses (sparse R200 initialization bridging, background scene-motion linking, exterior-corroborated grasp reacquisition, and revocable/rebasable retained flow poses).

2. Commercial-License Cleanliness (Removal of native/bundletrack)

  • Removed native/bundletrack/, evidencescene/tracking/pinned_bundletrack_runner.py, and tests/test_pinned_bundletrack_guard.py.
  • Removed PinnedBundleTrackRunner from evidencescene.tracking.__all__.

3. Shared Spatial State Runtime ("One Spatial State, Two Interfaces")

  • Ships EvidenceSceneRuntime, SceneStore, SceneSnapshot, ObjectSurface, and dependency revalidation (evidencescene.spatial_state, evidencescene.spatial_runtime) binding entity poses, measured surfaces, semantic inventory, and operator selections to monotonic scene revisions.

4. Colab Verification Harness & Paper Updates

  • Added resumable Colab release suite and gate/table renderer under benchmarks/replacements/dense-rgbd-odometry/ (eval_laval_release_candidate.py, run_colab_release_suite.py, render_v31_paper_tables.py) and benchmarks/colab/release_v31_verification.ipynb.
  • Updated papers/evidencescene/main.tex with Tables tab:v31-laval and tab:v31-colab-suites and recompiled papers/evidencescene/evidencescene.pdf and docs/assets/papers/evidencescene.pdf.

Verified Benchmark Scorecard (Google Colab NVIDIA L4, Commit ac9b4fee)

| Suite | Scope / Mask Source | Vol. On (Default) | Vol. Off | Comparator / Notes | Poses / Denom. | $>90^\circ$ | $p_{50}$ (ms) |
| :--- | :--- | ---: | :--- | ---: | ---: | ---: |
| Laval clock-hard | Causal Frame-0-box SAM 2.1 | 0.90749 | 0.84511 | BT Online 0.88002 / BT T4 0.89356 | 202 / 202 | 0 | 85.83 |
| Laval clock-full | Causal Frame-0-box SAM 2.1 | 0.93285 | 0.92701 | BT T4 0.91314 | 204 / 204 | 0 | 95.28 |
| Laval cookiejar | Causal Frame-0-box SAM 2.1 | 0.87846 | 0.88375 | BT T4 0.81113 | 295 / 295 | 0 | 95.06 |
| Laval 3-Seq Mean | 3/3 wins vs. BundleTrack | 0.90627 | 0.88529 | BT T4 0.87261 (+0.03366) | 701 / 701 | 0 | — |
| YCBInEOAT (9/9) | Reference masks (7/9 wins) | 0.88350 | 0.88778 | BT T4 0.84986 (+0.03364) | 7,405 / 7,440 | 0 | 55.62 |
| Reserved YCB-M (9/9) | Official unseen reserved_test (43 vis / 26 init) | 0.48482 fw / 0.48808 trk | 0.48087 fw / 0.48405 trk | Standalone pure-sensor L4 | 4,057 / 7,388 | 4 (0.10%) | 61.39 |
| DexYCB s0 Subj. 03 | Official unseen s0 (20 actions × 8 cams = 160 clips, points.xyz) | 0.85141 all / 0.68516 grasped | — | 632/632 all, 160/160 grasped (standalone L4; subjects 04–10 outside this receipt) | 41,251 / 45,096 | 453 (1.10%) | 50.00 |

Verification

  • python3 tools/check_arch.py — OK (strict layered DAG preserved).
  • CUPY_CACHE_DIR=/tmp/cupy-cache pytest -q — 219 passed, 1 skipped (local) and tests/test_volumetric_anchor.py + tests/test_multiview_cuda.py 9 passed on Colab NVIDIA L4.
  • tectonic main.tex — clean standalone PDF build (papers/evidencescene/evidencescene.pdf and docs/assets/papers/evidencescene.pdf SHA-256 matched).

The attached wheel targets CPython 3.12 on Linux x86-64. The source distribution supports building on other supported configurations. Verify downloads with sha256sum -c SHA256SUMS.txt.

EvidenceScene v2.8.0

Choose a tag to compare

@hughlv hughlv released this 26 Nov 03:22
7278e0d

EvidenceScene v2.8.0 Release Notes

Release Date: 2026-11-26

Correction (2026-11-28). The seven published per-workload speedups below have a geometric mean of 171.59×. The original release reported 191.31×. This correction recomputes the aggregate from the published rows. It covers synthetic CPU kernels.

evidencescene v2.8.0 completes full runtime AVX-512/AVX2 SIMD dispatch across all native kernels, adds native multi-view per-voxel RGB fusion to RevisableSurfelMap, introduces C11 single-pass 2D height-grid foreground clustering (cluster_height_grid_2d) and azimuthal outer-rim extraction (extract_rim_annulus_points), enables zero-copy masked planar integration (retain_camera_points=False), and refreshes the public kernel-v1 benchmark leaderboard (171.59x geometric-mean speed-up over baseline 04a1b6b).

What's New

1. Native Multi-View RGB Fusion in RevisableSurfelMap

  • observation_voxel_centroids(points, voxel_size_m, colors_rgb=None) computes per-voxel RGB means alongside lexicographic centroids in a single C11 pass (across Fast Path A, L3 direct-grid Path B, and hash-table Path C, with exact NumPy fallback).
  • RevisableSurfelMap.update() accepts either (camera, points) or (camera, points, colors_rgb_u8) observations, atomically accumulating and retracting per-voxel RGB sums across insertions, pose revisions, and retirements (surfel_general_update).
  • RevisableSurfelMap.snapshot(..., include_colors=True) returns fused uint8 RGB directly in snapshot_uniform_fast and snapshot_select — eliminating downstream per-object kNN RGB donor transfers (3.19x faster end-to-end: 0.078 ms vs 0.250 ms per object).

2. Single-Pass C11 2D Height-Grid Clustering (evidencescene.surface.grid_clustering)

  • Added GridCluster2D and cluster_height_grid_2d backed by C11 cluster_height_grid_2d_fast (using zero-allocation ThreadScratch buffers):
    • Single-pass foreground bounds filtering and 2D occupancy projection.
    • L1-cache vertical air-gap decoupling via two 3×3 dilations to separate low tabletop objects (layer 0) from overhanging/tall equipment structures (layer 1).
    • Row-major 8-connected BFS connected-component labeling matching scipy.ndimage.label.
    • Deterministic C11 3-way quickselect linear quantiles (h_p5, h_p97, xy_min_p3, xy_max_p97, z_top_p985), cutting 72k-point tabletop clustering time by 2.02x (1.126 ms vs 2.278 ms NumPy/SciPy fallback) with <= 1e-12 parity.

3. Single-Pass C11 Azimuthal Rim Extraction (evidencescene.teleop)

  • Added extract_rim_annulus_points backed by C11 extract_rim_annulus_fast for extracting outer-perimeter circular aperture rim rings with linear quickselect quantiles (11.18x faster: 0.012 ms vs 0.136 ms NumPy fallback).

4. Zero-Copy Masked Planar Integration & retain_camera_points=False

  • Added PersistentPlanarSurfaceConfig.retain_camera_points: bool = True. When disabled for streaming point-cloud pipelines that do not require historical correct_pose(), integrate_points() skips per-frame camera-frame back-transforms and passes include_mask/exclude_mask directly into C11 planar_project_and_aggregate_fast (backed by zero-page-fault ThreadScratch buffers), cutting masked 72k-point integration latency by 1.79x (0.799 ms vs 1.430 ms).

5. Complete Portable Runtime AVX-512/AVX2 Dispatch & Refreshed kernel-v1 Leaderboard

  • Upgraded voxel_centroids and select_existing_points_shadow_fast from compile-time #ifdef guards to portable __attribute__((target("avx512f,avx512dq,avx512vl"))) / __attribute__((target("avx2"))) runtime dispatch via __builtin_cpu_supports, so standard portable wheels automatically run AVX-512 on supported x86_64 CPUs.
  • Refreshed docs/performance_leaderboard.json and rendered project pages (docs/index.html, docs/demo/index.html, docs/benchmark/index.html) from live v2.8.0 C11/AVX-512 measurements:
kernel-v1 Workload Baseline 04a1b6b (ms) v2.8.0 C11/AVX-512 (ms) Speed-up
surface_snapshot_60k_budget_1500 20.478 0.0047 4,357.02x
surface_update_60k_points 72.995 0.3337 218.74x
voxel_centroids_60k_points 10.329 0.3500 29.51x
rle_box_centroid_480x640 0.092 0.0024 38.33x
surface_selection_60k_budget_1500 15.517 0.0993 156.26x
circle_consensus_400_points_256_hypotheses 4.453 0.0292 152.50x
circular_aperture_fit_400_points 4.348 0.0255 170.51x
Geometric Mean (kernel-v1) — — 171.59x

Verification

  • C11 extension builds with 0 warnings under -Wall -O3 -std=c11 -fno-fast-math -ffp-contract=off.
  • 82 passed with native C11/AVX-512 enabled (pytest -q).
  • 81 passed, 1 skipped with pure-Python fallback (EVIDENCESCENE_DISABLE_NATIVE=1 pytest -q).
  • All public pages, leaderboard contracts, and privacy checks verified (tests/test_performance_leaderboard.py).

EvidenceScene v2.7.0

Choose a tag to compare

@hughlv hughlv released this 26 Nov 02:41
821a580

EvidenceScene v2.7.0 Release Notes

Highlights

EvidenceScene v2.7.0 unlocks portable runtime x86_64 SIMD dispatch (AVX-512 / AVX2 / scalar) in standard wheels, introduces an L2-cache direct 2D grid aggregator eliminating hash/sort bottlenecks in persistent planar fusion, upgrades sparse coordinate RLE to O(K) LSD radix sort, exposes direct carve_free_space() APIs for point-cloud pipelines, and adds BoundedVoxelSlotGrid for single-pass C11 incremental 3D surfel streaming.

1. Portable Runtime x86_64 SIMD Dispatch (AVX-512 / AVX2 / Scalar)

  • Compiled into portable wheels without -march=native: detects CPU ISA once at module load via __builtin_cpu_supports (evidencescene._accel.NATIVE.simd_isa() returns "avx512", "avx2", or "scalar").
  • Accelerates 3D kNN RGB transfer (transfer_rgb_knn_3d), 3D nearest-neighbor Hausdorff queries (nn_min_dists_3d), and 2D circle RANSAC consensus (circle_consensus_2d) with 8-wide AVX-512 and 4-wide AVX2 leaf kernels while preserving strict IEEE-754 (-fno-fast-math -ffp-contract=off) parity with the pure-NumPy reference path.
  • transfer_measured_rgb_to_prior now avoids redundant uint8 -> float64 color copies and duplicate Python finiteness pre-scans on the native path.

2. L2-Cache Direct 2D Grid Planar Projection & Aggregation (planar_project_and_aggregate_fast)

  • Replaces per-frame hash-table probing and 72-byte struct qsort with a two-pass L2-cache direct 2D grid fast path whenever the inlier bounding box fits within 65,536 cells (<= 256 KiB), emitting cell centroids, RGB, and physics weights in exact ascending packed-key order with zero hashing and zero sorting.
  • Large sparse grids (> 65,536 cells) sort compact 16-byte (key, idx) pairs instead of 72-byte structs.

3. O(K) Radix-Sorted Sparse Coordinate RLE (encode_coords_rle_fast)

  • Replaces generic qsort with 2-pass (<= 4M pixels) and 3-pass (<= 4G pixels) 11-bit LSD radix sort (and inline insertion sort for K <= 64), maintaining bit-exact parity with dense encode_mask_rle.

4. Public carve_free_space() APIs & Zero-Allocation Unmasked Carving

  • Added thread-safe carve_free_space(depth_m, camera_matrix, *, frame_from_camera, include_mask=None, exclude_mask=None) -> int on both PersistentPlanarSurfaceReconstructor and PersistentMultiPlaneSurfaceReconstructor.
  • planar_free_space_carve_fast accepts selected_mask=None directly to skip full-frame boolean mask allocations when carving unmasked depth maps.

5. Bounded 3D Voxel Slot Delta Grid (evidencescene.surface.BoundedVoxelSlotGrid)

  • New generic bounded (max_slots <= 65535) 3D voxel-indexed surfel slot table (BoundedVoxelSlotGrid, VoxelSlotDelta, quantize_points_u16, pack_rgb565) backed by the single-pass GIL-released C11 kernel voxel_slot_grid_step_fast.
  • Ingests multiple (pts_f32, rgb_u8, optional_skip_mask) point clouds without intermediate masking or concatenation copies, deduplicates voxels in O(1) via monotonic observation stamps, quantizes updated slots to 16-bit coordinates + RGB565, emits compact (M, 5) uint16 upserts and (D,) uint16 retirements, and matches the pure-NumPy fallback bit-for-bit.

Verification

  • Native C11 (-Wall zero compiler warnings) and pure-NumPy fallback (EVIDENCESCENE_DISABLE_NATIVE=1) test suites both pass with exact parity across all v2.7.0 kernels and APIs.
  • GitHub Actions CI matrix passes across Python 3.10, 3.11, and 3.12 (native ON, fallback OFF, CLI demo, benchmark, and wheel/sdist build).

EvidenceScene v2.6.0

Choose a tag to compare

@hughlv hughlv released this 26 Nov 02:16
2959f5d

EvidenceScene v2.6.0

Summary

EvidenceScene v2.6.0 introduces a single-pass C11 hash-table surface snapshot mesher, a 3D cylindrical vessel axis & tilt estimator (fit_cylinder_axis_3d), an $O(K \log K)$ sparse-coordinate RLE mask encoder (encode_mask_rle_from_coords), and C11 single-pass ESTM vertex quantization—delivering up to 10× faster persistent mesh snapshots and >20× faster vessel body estimation while eliminating dense mask and float64 copy overhead.

Highlights

1. Single-Pass C11 Hash-Table Planar Mesher & Zero-Copy float32 Path (evidencescene.surface.persistent_static_surface)

  • Added C11 kernel planar_mesh_snapshot_ht_fast: probes 3 neighbor cells directly in the open-addressing slot hash table, applies exact edge/normal-step/winding gates, and compacts vertices/colors/triangles/normals in a single GIL-released pass (eliminating per-tile Python set iteration and np.fromiter overhead).
  • Added zero-copy float32 support and mask-free fast-path in PersistentPlanarSurfaceReconstructor.integrate_points, avoiding unnecessary float32 -> float64 copies before C11 planar_project_and_aggregate_fast.

2. 3D Cylindrical Vessel Axis & Tilt Feature Extractor (evidencescene.teleop.task_features)

  • Added MeasuredCylinderAxis3D and fit_cylinder_axis_3d(...) backed by C11 kernel fit_cylinder_axis_fast (re-exported from evidencescene.teleop).
  • Complements fit_circular_aperture_3d under top-rim occlusion by fitting azimuthally-binned outer-perimeter circles across upper and lower vessel bands via analytical 2×2 IRLS Gauss-Newton normal equations, supporting arbitrary reference_up orientations.

3. Sparse-Coordinate O(K log K) RLE Mask Encoder (evidencescene.primitives.image_mask)

  • Added encode_mask_rle_from_coords(rows, cols, height=..., width=...) backed by C11 kernel encode_coords_rle_fast (re-exported from evidencescene.primitives).
  • Emits bit-exact canonical row-major RLE dictionaries directly from sparse (row, col) pixel indices without allocating or scanning dense (H, W) boolean images.

4. C11 Single-Pass ESTM Vertex Quantizer (evidencescene.surface.mesh_codec)

  • Added C11 kernel estm_quantize_vertices_fast wired into encode_surface_mesh_binary for single-pass bounding-box extraction and uint16 quantization with bit-exact parity against the NumPy fallback.

Verification

  • All 80 standalone unit & parity tests pass with both native C11 enabled (-Wall zero compiler warnings) and pure-NumPy fallback (EVIDENCESCENE_DISABLE_NATIVE=1).

EvidenceScene v2.5.0 — C11 kNN RGB / RANSAC / Fused Planar Kernels, Multi-Plane Discovery & ESTM Codec

Choose a tag to compare

@hughlv hughlv released this 25 Nov 15:58
54bf628

EvidenceScene v2.5.0

Summary

EvidenceScene v2.5.0 adds four new C11/SIMD computational kernels covering 3D kNN RGB transfer, fused planar projection/physics-weighted aggregation, camera free-space carving, and deterministic RANSAC plane consensus; introduces automatic multi-plane discovery (extract_measured_planes); and graduates the 4-byte-aligned ESTM compact binary mesh codec into the standalone evidencescene.surface package.

Highlights

1. Four New C11/SIMD Native Kernels (evidencescene/_native.c)

  • planar_project_and_aggregate_fast: Fuses plane residual gating, tangent (u, v) projection, grazing-angle & $\cos\theta/z^2$ physics weighting, specular highlight attenuation, cell key packing, and hash-table aggregation into one zero-intermediate-allocation C11 pass (supporting both float32 and float64 point clouds directly).
  • planar_free_space_carve_fast: Single-pass GIL-released camera projection and 3×3 neighborhood free-space visibility check for PersistentPlanarSurfaceReconstructor._apply_free_space_carving.
  • transfer_rgb_knn_3d: Reuses the AVX2/AVX-512 median-split 3D KD-tree for exact $k$-nearest neighbor inverse-distance RGB blending in transfer_measured_rgb_to_prior, eliminating per-object SciPy cKDTree construction overhead.
  • fit_plane_ransac_fast: Deterministic triplet-seeded RANSAC consensus with exact early-exit pruning for fast_fit_shared_plane and sequential multi-plane peeling.
  • Cleaned up unused HT_TOMB static constant so evidencescene/_native.c compiles cleanly under -Wall.

2. Deterministic Multi-Plane Discovery (extract_measured_planes)

  • Added extract_measured_planes(...) in evidencescene.surface.persistent_multi_plane (re-exported from evidencescene.surface).
  • Sequentially peels up to max_planes dominant measured planes using fast_fit_shared_plane, refines normals and RMSE on full inlier support, enforces optional inter-plane angle diversity (min_inter_plane_angle_deg), and emits PlaneObservationSpec entries directly consumable by PersistentMultiPlaneSurfaceReconstructor.

3. Standalone Compact Binary Mesh Wire Codec (evidencescene.surface.mesh_codec)

  • Added BINARY_MESH_MAGIC (b"ESTM"), encode_surface_mesh_binary, and decode_surface_mesh_binary (re-exported from evidencescene.surface).
  • Encodes MeasuredSurfaceMesh, PersistentSurfaceSnapshot, MultiPlaneSurfaceSnapshot (including vertex_plane_indices and triangle_plane_indices), or compatible mappings into 4-byte-aligned uint16 quantized vertices, uint8 RGB, and uint16/uint32 triangles (~3.7× smaller raw / ~2.2× smaller gzipped than JSON at 0.05 mm quantization precision).

Verification

  • All 79 unit & parity tests pass with both native C11 enabled and pure-NumPy fallback (EVIDENCESCENE_DISABLE_NATIVE=1), verifying exact native/fallback parity across all four new C11 kernels, multi-plane discovery, and binary codec round-trips.

EvidenceScene v2.4.0 — Multi-Plane Persistent Surfaces, Subspace Schur Regularization & Public Suite

Choose a tag to compare

@hughlv hughlv released this 25 Nov 15:32
c210469

EvidenceScene v2.4.0

Summary

EvidenceScene v2.4.0 extends persistent static surface reconstruction to multi-plane scenes, adds subspace-projected Schur observability regularization for partially observable and rotationally symmetric objects, and consolidates the reproducible public competitor benchmark suite onto main.

Highlights

1. Multi-Plane Persistent Static Surface Reconstruction (evidencescene.surface.persistent_multi_plane)

  • Added PersistentMultiPlaneSurfaceReconstructor, PlaneObservationSpec, MultiPlaneSurfaceConfig, MultiPlaneSurfaceSnapshot, and MultiPlaneUpdateResult.
  • Coordinates up to max_planes (default 8) bounded PersistentPlanarSurfaceReconstructor instances under a single threading.RLock, inheriting C11/SIMD dirty-tile incremental meshing, sensor_physics weighting, free-space carving, and bounded memory budgets.
  • Deterministic seam arbitration: Overlapping corner/seam samples (e.g., horizontal countertop + vertical backsplash) are deterministically assigned to the minimum-residual plane with lexicographic plane_id tie-breaking (seam_tie_tolerance_m), preventing double-layer mesh overlap at junctions without interfering with free-space carving.
  • Unified versioned snapshots & synchronized lifecycle: snapshot() returns an immutable merged mesh with vertex_plane_indices, triangle_plane_indices, and per-plane plane_snapshots. Supports synchronized correct_pose / correct_poses broadcasts as well as per-plane and global reset().

2. Subspace Schur Observability Regularization (evidencescene.observability.factor_graph_observability)

  • Added project_schur_observable_subspace(...) and SchurSubspaceRegularizationReport alongside the unchanged binary evaluate_schur_observability_gate(...).
  • Performs eigendecomposition of the symmetric 6×6 marginal pose information block pose_marginal_information_6x6 and projects the right-trivialized relative $\mathfrak{se}(3)$ tangent $\xi = \log(T_{\text{prior}}^{-1} T_{\text{cand}})$ onto the observable subspace before mapping back via exact $\mathrm{SE}(3)$ exponential map.
  • Supports both "tikhonov" (closed-form MAP shrinkage $\lambda_k^+ / (\lambda_k^+ + \lambda_{\text{prior}})$ with null-space clamping) and "hard_subspace" (exact orthogonal projection with bit-identical full-rank passthrough), clamping rank-deficient directions (e.g., cylindrical spin around a symmetry axis) strictly to prior_pose while retaining observable DoFs, and failing back cleanly to prior_pose when rank is 0.

3. Reproducible Public Competitor Suite Consolidation

  • Consolidated benchmarks/competitors/2026-11-21-public-suite/ (Laval 3-sequence + YCBInEOAT 9-sequence unified 2×2 runners, scoring scripts, and JSON scorecards) cleanly onto main with public-hygiene test coverage in tests/test_performance_leaderboard.py.

Verification

  • Full standalone test suite passes with both native C11 acceleration enabled and pure-NumPy fallback (EVIDENCESCENE_DISABLE_NATIVE=1).
  • New unit tests in tests/test_persistent_multi_plane.py and tests/test_observability_metrics_and_cli.py::TestSchurSubspaceRegularization verify L-shaped counter+backsplash fusion, seam arbitration tie-breaking, occlusion retention, pose correction broadcasts, resets, rank-6/rank-5/rank-0 subspace projection, and SE(3) validity.

EvidenceScene v2.3.0 — C11/SIMD Native Kernels, Dirty-Tile Incremental Surface Meshing & Sensor-Physics Weighting

Choose a tag to compare

@hughlv hughlv released this 25 Nov 15:23
c6f5baa

EvidenceScene 2.3.0 — C11/SIMD native acceleration, dirty-tile meshing, & physics-weighted fusion

EvidenceScene 2.3.0 integrates the optional C11/SIMD deterministic computational
kernel extension (evidencescene._native) across the library, extends native
acceleration to measured and persistent planar surface meshing, adds 32×32
dirty-tile incremental meshing, and introduces sensor-physics fusion weighting
($\cos\theta / z^2$ with specular highlight attenuation) by default.

Highlights

  • Optional C11/SIMD native extension (evidencescene._native & evidencescene._accel):
    • Strict IEEE-754 determinism (-O3 -std=c11 -fno-fast-math -ffp-contract=off),
      zero NumPy C-ABI build dependency (PEP 3118 buffer protocol), slab buffer
      pool, content-addressed JIT fallback for source checkouts, and automatic
      pure-NumPy fallback (EVIDENCESCENE_DISABLE_NATIVE=1).
    • Accelerates all 7 core kernel-v1 workloads (RevisableSurfelMap update &
      snapshot, voxel centroids, RLE algebra, circular aperture fit, shadow
      selection, Schur observability gate, 3D KD-tree metrics, and masked-depth
      backprojection).
    • Adds 8 new C11 surface/meshing kernels (planar_mesh_finish_fast,
      planar_tile_quads_fast, planar_compact_triangles_fast,
      planar_cell_aggregate_fast, planar_ht_lookup_fast,
      planar_ht_rebuild_fast, planar_window_accumulate_fast, and
      planar_compact_obs_fast).
  • 32×32 dirty-tile incremental meshing (PersistentPlanarSurfaceReconstructor):
    • Re-triangulates only tiles modified since the last snapshot (with 1-cell
      shared border ownership for seamless cross-tile quads) and incrementally
      maintains fused cell positions/colors in C11.
    • Localized wrist-camera updates with active sliding-window compaction drop
      from 35.35 ms/frame to 1.75 ms/frame (20.2× speedup); full
      21.6k-point table updates drop from 17.5 ms/frame to 5.84 ms/frame
      (3.0× speedup); single-frame planar baseline meshing drops from
      2.89 ms to 1.53 ms (p50); replay tracemalloc peak memory drops
      28% (26.22 MB → 18.82 MB).
  • Sensor-physics fusion weighting (weighting_mode="sensor_physics", default):
    • Weights per-sample depth & color updates by incidence cosine and inverse
      squared viewing distance ($\operatorname{clip}(\cos\theta / \max(z, 0.2)^2, 0.05, 8.0)$)
      when camera pose is supplied, while attenuating near-saturated specular
      glints (specular_saturation_threshold=250, specular_rgb_weight_scale=0.25).
    • Automatically falls back to uniform weighting when frame_from_camera is
      omitted or weighting_mode="uniform" is configured.
  • Circular moving-block bootstrap CIs (evidencescene.metrics):
    • Adds BlockBootstrapCI, compute_moving_block_bootstrap_ci, and
      compute_paired_block_bootstrap_diff_ci for finite-horizon uncertainty
      estimation on temporally correlated video sequences.

Validation

  • 73 standalone tests pass with C11 native enabled AND with
    EVIDENCESCENE_DISABLE_NATIVE=1 across Python 3.10, 3.11, and 3.12 CI,
    including bit-exact native vs. fallback parity, multi-tile boundary
    stitching, sensor-physics weighting, concurrency, and setup.py build_ext.
  • Recorded 37-frame physical 3-camera RGB-D replay
    (benchmarks/surface_mesh/recorded-persistent-planar-20261125-v230.json):
    • Persistent final coverage 0.488 m² (8,020 V / 15,186 F, +41.8% over
      best single view, 101.6% retained during heavy occlusion, 4.3× baseline
      during occlusion, zero foreground ghosts with and without exclude_mask).
    • Update p50/p95 5.32 / 11.69 ms, snapshot p50/p95 3.19 / 3.88 ms,
      single-frame baseline p50 1.53 ms, tracemalloc peak 18.82 MB.

Installation

Install the attached wheel, or from git:

pip install 'evidencescene @ git+https://github.com/tiwater/evidencescene.git@v2.3.0'

This is a GitHub release; no PyPI publication is implied.