Repository navigation
RCDL 0.3.1
修复一个问题,并把基准表和检查图换到自研 NPU 运行时上。自研 NPU 栈和 0.3.0 的全部新内容见 v0.3.0。
修复
Engine.label_map()不带参数时只去掉.rknn后缀来找<模型>.labels.txt,所以在自研运行时上(直接打开.rnpu,或设置RCDL_OPEN_NPU=1)找不到标签文件,开放词表检测只能显式传入路径。现在.rknn和.rnpu共用旁边同一个标签文件。
基准与检查图
benchmarks/bench.py默认在自研 NPU 运行时上运行(--runtime rknn改用 librknnrt),从 25 行增加到 43 行。新增的检查图:DETR 检测与实例分割、文档版面分析与方向、RTMO 多人姿态、度量深度、双目深度、LVFace、人脸活体、PE-Core 零样本、EdgeTAM 视频目标跟踪,以及 SenseVoice、Moonshine、Kokoro、CAM++、EfficientAT 五个语音任务。凡有标准答案的都写明对照结果:语音识别对参考文本,Kokoro 合成的语音由板上的识别模型听回来(中英文都一字不差),视频跟踪对已知运动(IoU 最低 0.943),度量深度和活体对浮点模型。benchmarks/RESULTS.md给出 RK3588S 和 RK3588 两块板的数字,两块板上每一行的结果都相同;README 的效果图库扩到 33 张。
安装
conda create -n rcdl -c https://mirrors.ruis.ai/conda -c conda-forge rcdl完整变更见 CHANGELOG.md。
RCDL 0.3.1
One fix, and the benchmark table and check figures now come from RCDL's own NPU runtime. For the NPU stack itself and everything else new in 0.3.0, see v0.3.0.
Fixed
- With no path,
Engine.label_map()stripped only an.rknnsuffix to find<model>.labels.txt, so on the own runtime (an.rnpuopened directly, orRCDL_OPEN_NPU=1) it missed the labels file and open-vocabulary detection needed the path spelled out. An.rknnand an.rnpunow share the labels file beside them.
Benchmark and check figures
benchmarks/bench.pyruns on the own NPU runtime by default (--runtime rknnfor librknnrt) and has grown from 25 rows to 43. New check figures: DETR detection and instance segmentation, document layout and orientation, RTMO multi-person pose, metric depth, stereo depth, LVFace, face liveness, PE-Core zero-shot, EdgeTAM video object tracking, and five speech tasks (SenseVoice, Moonshine, Kokoro, CAM++, EfficientAT). Wherever there is a right answer they say how close the result came: speech recognition against the reference text, Kokoro's speech read back by the recognisers on the board (every word, in both languages), video tracking against a known motion (IoU 0.943 at worst), metric depth and liveness against the float models.benchmarks/RESULTS.mdgives an RK3588S and an RK3588 board's numbers, with the same result on every row on both; the README gallery has 33 pictures.
Install
conda create -n rcdl -c https://mirrors.ruis.ai/conda -c conda-forge rcdlAll changes: CHANGELOG.en.md (Chinese, the default: CHANGELOG.md).