feat: cpu-first real-csi inference vertical slice - #1978
Open
beastbroak30 wants to merge 1 commit into
Open
beastbroak30 wants to merge 1 commit into
beastbroak30 wants to merge 1 commit into
Conversation
- dataset manifest + split provenance (MM-Fi primary, Wi-Pose template) - real CSI preprocessing pipeline (fail-closed validation, phase sanitization, Hampel denoising, per-pair standardization, 114->56 subcarrier conversion via existing interpolate_subcarriers) - prepare_public_dataset bin (validates .npy headers, measures native width, writes subject-disjoint split.json + dataset_manifest.json) - cpu-micro-fp32 / cpu-micro-int8 profiles, ModelMetadata honesty separation, InferenceOptions extensions, ONNX intra-op thread wiring - cpu-inference-bench bin (smoke mode, --compare FP32 vs INT8) - real_csi_bench criterion bench over synthetic windows - docs/cpu-inference-real-csi.md (acquisition, licenses, math, splits, profiles, bench commands, limitations, ESP32 validation path) - 355 new tests across train/nn/signal; zero clippy warnings in new code; smoke-tested both new bins on Windows x86-64 - no accuracy numbers claimed: no public datasets downloaded, no cpu-micro-* weights trained
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
RuView had no CPU inference path for real public CSI datasets, no dataset
preparation pipeline, and no honest profiling harness. This patch adds the
first vertical slice: dataset validation, preprocessing, CPU profiles, a
benchmark binary, and documentation — all without downloading data or training
weights.
Datasets
ybhbingo/MMFi_datasetNjtechCVLab/Wi-PoseDataset.mat→.npyconversion documented but not wiredBoth datasets require manual download. Files are never committed to Git.
Implementation
New modules:
public_dataset.rs—DatasetManifest,PreparedSplit,ProcessedSampleMeta,SplitPolicyreal_csi.rs—RealCsiPipeline(6-stage: shape validation → NaN rejection → phase sanitization → Hampel denoising → per-pair standardization → subcarrier conversion)profile.rs—CpuProfile(5 variants, 2 implemented),ModelMetadatawith enforced honesty separationNew binaries:
prepare_public_dataset— validates.npyheaders, measures native width, writesdataset_manifest.json+split.jsoncpu_inference_bench— machine-headered P50/P95/throughput reports,--compareFP32 vs INT8Modified:
inference.rs—InferenceOptionsgainsprofile,precision,deterministiconnx.rs— session builder honors intra-op thread countdataset.rs—MmFiDataset::discover_subsetfor subject-filtered discoverywifi-densepose-signal— re-exportshampel_filterandHampelConfigMethodology
real-csi-v1): fail-closed (no NaN/inf repair), documented interpolation math for 114→56 conversion, per-sample provenance.ModelMetadata::validate()refuses to claim accuracy without real validation. All cells in the results table are "not run (no dataset locally)".Results
No accuracy numbers claimed. All infrastructure verified:
Limitations
Reproducing