|
|
||
|---|---|---|
| .. | ||
| cpu | ||
| gpu | ||
| README.md | ||
README.md
Benchmark
图片 Benchmark 默认保存在:
outputs/images/<图片名_扩展名>/benchmark.json
示例:
python ocr.py data/images/手写01.png --warmup 1 --rounds 3
需要额外复制时:
python ocr.py data/images/手写01.png --benchmark-json benchmarks/cpu/手写01.json
参数矩阵测试
python benchmark.py
默认比较 tiny/small/medium 与 fast/standard 预处理配置,报告生成到:
benchmarks/参数测试报告-<时间戳>.md
各场景原始结果和汇总 JSON 保存在:
benchmarks/parameter-runs/<时间戳>/