Implement complete WiFi CSI-to-DensePose neural network pipeline: Phase 1 - Dataset loaders: .npy/.mat v5 parsers, MM-Fi + Wi-Pose loaders, subcarrier resampling (114->56, 30->56), DataPipeline Phase 2 - Graph transformer: COCO BodyGraph (17 kp, 16 edges), AntennaGraph, multi-head CrossAttention, GCN message passing, CsiToPoseTransformer full pipeline Phase 4 - Training loop: 6-term composite loss (MSE, cross-entropy, UV regression, temporal consistency, bone length, symmetry), SGD+momentum, cosine+warmup scheduler, PCK/OKS metrics, checkpoints Phase 5 - SONA adaptation: LoRA (rank-4, A*B delta), EWC++ Fisher regularization, EnvironmentDetector (3-sigma drift), temporal consistency loss Phase 6 - Sparse inference: NeuronProfiler hot/cold partitioning, SparseLinear (skip cold rows), INT8/FP16 quantization with <0.01 MSE, SparseModel engine, BenchmarkRunner Phase 7 - RVF pipeline: 6 new segment types (Index, Overlay, Crypto, WASM, Dashboard, AggregateWeights), HNSW index, OverlayGraph, RvfModelBuilder, ProgressiveLoader (3-layer: A=instant, B=hot, C=full) Phase 8 - Server integration: --model, --progressive CLI flags, 4 new REST endpoints, WebSocket pose_keypoints + model_status 229 tests passing (147 unit + 48 bin + 34 integration) Benchmark: 9,520 frames/sec (105μs/frame), 476x real-time at 20 Hz 7,832 lines of pure Rust, zero external ML dependencies Co-Authored-By: claude-flow <ruv@ruv.net>
139 lines
3.6 KiB
TOML
139 lines
3.6 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"crates/wifi-densepose-core",
|
|
"crates/wifi-densepose-signal",
|
|
"crates/wifi-densepose-nn",
|
|
"crates/wifi-densepose-api",
|
|
"crates/wifi-densepose-db",
|
|
"crates/wifi-densepose-config",
|
|
"crates/wifi-densepose-hardware",
|
|
"crates/wifi-densepose-wasm",
|
|
"crates/wifi-densepose-cli",
|
|
"crates/wifi-densepose-mat",
|
|
"crates/wifi-densepose-train",
|
|
"crates/wifi-densepose-sensing-server",
|
|
"crates/wifi-densepose-wifiscan",
|
|
"crates/wifi-densepose-vitals",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["WiFi-DensePose Contributors"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/ruvnet/wifi-densepose"
|
|
documentation = "https://docs.rs/wifi-densepose"
|
|
keywords = ["wifi", "densepose", "csi", "pose-estimation", "rust"]
|
|
categories = ["science", "computer-vision", "wasm"]
|
|
|
|
[workspace.dependencies]
|
|
# Core utilities
|
|
thiserror = "1.0"
|
|
anyhow = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.9"
|
|
tokio = { version = "1.35", features = ["full"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
|
|
# Signal processing
|
|
ndarray = { version = "0.15", features = ["serde"] }
|
|
ndarray-linalg = { version = "0.16", features = ["openblas-static"] }
|
|
rustfft = "6.1"
|
|
num-complex = "0.4"
|
|
num-traits = "0.2"
|
|
|
|
# Neural network
|
|
tch = "0.14"
|
|
ort = { version = "2.0.0-rc.11" }
|
|
candle-core = "0.4"
|
|
candle-nn = "0.4"
|
|
|
|
# Web framework
|
|
axum = { version = "0.7", features = ["ws", "macros"] }
|
|
tower = { version = "0.4", features = ["full"] }
|
|
tower-http = { version = "0.5", features = ["cors", "trace", "compression-gzip"] }
|
|
hyper = { version = "1.1", features = ["full"] }
|
|
|
|
# Database
|
|
sqlx = { version = "0.7", features = ["runtime-tokio", "postgres", "sqlite", "uuid", "chrono", "json"] }
|
|
redis = { version = "0.24", features = ["tokio-comp", "connection-manager"] }
|
|
|
|
# Configuration
|
|
config = "0.14"
|
|
dotenvy = "0.15"
|
|
envy = "0.4"
|
|
|
|
# WASM
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["console", "Window", "WebSocket"] }
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
# Hardware
|
|
serialport = "4.3"
|
|
pcap = "1.1"
|
|
|
|
# Graph algorithms (for min-cut assignment in metrics)
|
|
petgraph = "0.6"
|
|
|
|
# Data loading
|
|
ndarray-npy = "0.8"
|
|
walkdir = "2.4"
|
|
|
|
# Hashing (for proof)
|
|
sha2 = "0.10"
|
|
|
|
# CSV logging
|
|
csv = "1.3"
|
|
|
|
# Progress bars
|
|
indicatif = "0.17"
|
|
|
|
# CLI
|
|
clap = { version = "4.4", features = ["derive"] }
|
|
|
|
# Testing
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
proptest = "1.4"
|
|
mockall = "0.12"
|
|
wiremock = "0.5"
|
|
|
|
# ruvector integration (all at v2.0.4 — published on crates.io)
|
|
ruvector-mincut = "2.0.4"
|
|
ruvector-attn-mincut = "2.0.4"
|
|
ruvector-temporal-tensor = "2.0.4"
|
|
ruvector-solver = "2.0.4"
|
|
ruvector-attention = "2.0.4"
|
|
|
|
|
|
# Internal crates
|
|
wifi-densepose-core = { path = "crates/wifi-densepose-core" }
|
|
wifi-densepose-signal = { path = "crates/wifi-densepose-signal" }
|
|
wifi-densepose-nn = { path = "crates/wifi-densepose-nn" }
|
|
wifi-densepose-api = { path = "crates/wifi-densepose-api" }
|
|
wifi-densepose-db = { path = "crates/wifi-densepose-db" }
|
|
wifi-densepose-config = { path = "crates/wifi-densepose-config" }
|
|
wifi-densepose-hardware = { path = "crates/wifi-densepose-hardware" }
|
|
wifi-densepose-wasm = { path = "crates/wifi-densepose-wasm" }
|
|
wifi-densepose-mat = { path = "crates/wifi-densepose-mat" }
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
strip = true
|
|
opt-level = 3
|
|
|
|
[profile.release-with-debug]
|
|
inherits = "release"
|
|
debug = true
|
|
strip = false
|
|
|
|
[profile.bench]
|
|
inherits = "release"
|
|
debug = true
|