模型名称: Vikkyv9/wifi-view
模型链接: HuggingFace
模型描述: WiFi CSI (Channel State Information) 8维特征嵌入编码器,用于基于WiFi信号的姿态估计/人体感知。将标准化的8维CSI特征向量编码为128维L2归一化嵌入向量。
模型架构: 2层MLP (Linear(8,64) + BatchNorm + GELU + Linear(64,128) + BatchNorm + L2-Normalize)
参数规模: 9,280
输入规格:
输出规格:
| 依赖项 | 版本要求 | 说明 |
|---|---|---|
| Python | >= 3.10 | 推荐 3.11 |
| torch | >= 2.1.0 | PyTorch 框架 |
| torch_npu | >= 2.1.0 | 昇腾 NPU 后端 |
| safetensors | >= 0.4.0 | 安全张量格式加载 |
| numpy | < 2.0 | 数值计算 |
| 昇腾驱动 | CANN 8.0+ | 推荐 CANN 8.5.1 |
安装命令:
pip install torch-npu>=2.1.0 safetensors>=0.4.0 numpy# 检查 NPU 设备
npu-smi info
# 验证 torch_npu
python3 -c "import torch_npu; print(torch.npu.device_count(), torch.npu.get_device_name(0))"huggingface-cli download Vikkyv9/wifi-view --local-dir ./wifi-view# 启动推理
python3 inference.py --model-path ./wifi-view --batch-size 4| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| --model-path | str | 必填 | 模型权重目录路径 |
| --batch-size | int | 1 | 推理批量大小 |
| --device | str | npu | 推理设备 (npu/cpu) |
[模型] Vikkyv9/wifi-view CSI Encoder (8->64->128)
[设备] Ascend910_9362 (npu:0)
[权重] csi-embed-v2.safetensors
[参数量] 9,280
[推理] 输入: 4 个样本, 每个 8 维
[单条推理] 输入: 8-dim CSI features
[单条推理] 输出: 128-dim embedding
[单条推理] L2 norm: 1.000000
[单条推理] 耗时: ~200ms
[批量推理] 4 条, 总耗时: ~0.7ms, 平均: ~0.17ms/条
[批量推理] L2 norms: [~1.0, ~1.0, ~1.0, ~1.0]
[状态] SUCCESS运行命令:
python3 inference.py --model-path ./wifi-view --batch-size 1输出:
[模型] Vikkyv9/wifi-view CSI Encoder (8->64->128)
[设备] Ascend910_9362 (npu:0)
[权重] ./wifi-view/csi-embed-v2.safetensors
[参数量] 9,280
[推理] 输入: 1 个样本, 每个 8 维
[单条推理] 输入: 8-dim CSI features
[单条推理] 输出: 128-dim embedding
[单条推理] L2 norm: 1.000000
[单条推理] 耗时: ~200ms
[批量推理] 4 条, 总耗时: ~0.7ms, 平均: ~0.17ms/条
[状态] SUCCESS运行命令:
python3 inference.py --model-path ./wifi-view --batch-size 4输出:
[批量推理] 4 条, 总耗时: ~0.7ms, 平均: ~0.17ms/条
[批量推理] L2 norms: [1.0, 1.0, 1.0, 1.0]
[状态] SUCCESS


测试数据: 模型自带训练集 (totalTriplets: 610,615)
评测指标:
| 指标 | v1 (raw features) | v2 (this encoder) | 差异 |
|---|---|---|---|
| Temporal-triplet accuracy | 66.4% | 82.3% | +15.9% |
评测说明: 该模型为自监督对比学习编码器,使用triplet loss训练。嵌入向量的质量通过temporal triplet accuracy衡量。
无