30 lines
572 B
Markdown
30 lines
572 B
Markdown
# Benchmark Results
|
|
|
|
图片 Benchmark 现在与 OCR 结果保存在同一输出目录:
|
|
|
|
```text
|
|
outputs/images/<图片名_扩展名>/benchmark.json
|
|
```
|
|
|
|
例如:
|
|
|
|
```bash
|
|
python ocr.py data/images/手写01.png --device cpu --warmup 1 --rounds 3
|
|
```
|
|
|
|
生成:
|
|
|
|
```text
|
|
outputs/images/手写01_png/benchmark.json
|
|
```
|
|
|
|
如需额外复制到指定位置,可使用:
|
|
|
|
```bash
|
|
python ocr.py data/images/手写01.png \
|
|
--device cpu \
|
|
--benchmark-json benchmarks/手写01-cpu.json
|
|
```
|
|
|
|
`benchmarks/cpu/` 与 `benchmarks/gpu/` 仅保留为可选的人工归档目录。
|