refactor(actpred): 默认图像分辨率改回 640×480
实机测速显示 1080p 采集的预处理缩放(约 45ms)主导端到端延迟 (测速报告 §6.1),640×480 下端到端 18.6ms,与 NPU/ORT 推理开销 更匹配。640×480 亦能被 16 整除,部署导出池化无损失。 已有 checkpoint 自带配置不受影响,仅改新训练默认值。
This commit is contained in:
1 parent
823e91a30e
commit
8af8dec1b0
6 files changed
+18
-18
No files matched your search
@@ -60,7 +60,7 @@ def build_image_samples(n_samples, frame_len, height, width, rng,
|
||||
"""生成 (n_samples, frame_len, 3, H, W) uint8 校准图像
|
||||
|
||||
存 uint8 原始像素值(0~255),加载时再做 ToTensor+Normalize,节省磁盘。
|
||||
经 memmap 分块填充后返回:1080p 默认分辨率下整块数组约 600MB,
|
||||
经 memmap 分块填充后返回:高分辨率(如 1080p)下整块数组可达 ~600MB,
|
||||
一次性分配容易挤爆内存,分块写盘把峰值压到 chunk_samples 帧量级。
|
||||
"""
|
||||
if chunk_samples < 1:
|
||||
|
||||
Reference in new issue
Block a user