README.md 2.6 KB
Newer Older
F
fengyuentau 已提交
1 2 3 4
# OpenCV Zoo

A zoo for models tuned for OpenCV DNN with benchmarks on different platforms.

5 6 7
Guidelines:
- To clone this repo, please install [git-lfs](https://git-lfs.github.com/), run `git lfs install` and use `git lfs clone https://github.com/opencv/opencv_zoo`.
- To run benchmark on your hardware settings, please refer to [benchmark/README](./benchmark/README.md).
8 9 10 11 12 13
- Understand model filename: `<topic>_<model_name>_<dataset>_<arch>_<upload_time>`
    - `<topic>`: research topics, such as `face detection` etc.
    - `<model_name>`: exact model names.
    - `<dataset>`: (Optional) the dataset that the model is trained with.
    - `<arch>`: (Optional) the backbone architecture of the model.
    - `<upload_time>`: the time when the model is uploaded, meaning the latest version of this model unless specified.
14 15 16 17 18 19 20 21 22

## Models & Benchmarks

Hardware Setup:
- `CPU x86_64`: INTEL CPU i7-5930K @ 3.50GHz, 6 cores, 12 threads.
- `CPU ARM`: Raspberry 4B, BCM2711B0 @ 1.5GHz (Cortex A-72), 4 cores, 4 threads.
- `GPU CUDA`: NVIDIA Jetson Nano B01, 128-core Maxwell, Quad-core ARM A57 @ 1.43 GHz.

***Important Notes***:
23 24
- The time data that shown on the following table presents the time elapsed from preprocess (resize is excluded), to a forward pass of a network, and postprocess to get final results.
- The time data that shown on the following table is the median of 10 runs. Different metrics may be applied to some specific models.
25
- Batch size is 1 for all benchmark results.
26
- View [benchmark/config](./benchmark/config) for more details on benchmarking different models.
27
- `---` means this model is not availble to run on the device.
28

29
| Model | Input Size | CPU x86_64 (ms) | CPU ARM (ms) | GPU CUDA (ms) |
30
|-------|------------|-----------------|--------------|---------------|
31
| [YuNet](./models/face_detection_yunet)   | 160x120 | 1.45   | 6.22    | 12.18 |
32 33
| [DB-IC15](./models/text_detection_db)    | 640x480 | 142.91 | 2835.91 | 208.41 |
| [DB-TD500](./models/text_detection_db)   | 640x480 | 142.91 | 2841.71 | 210.51 |
34 35 36 37
| [CRNN](./models/text_recognition_crnn)   | 100x32  | 50.21  | 234.32  | 196.15 |
| [SFace](./models/face_recognition_sface) | 112x112 | 8.65 | 99.20 | 24.88 |
| [PP-ResNet](./models/image_classification_ppresnet) | 224x224 | 56.05 | 602.58 | 98.64 |
| [PP-HumanSeg](./models/human_segmentation_pphumanseg) | 192x192 | 19.92 | 105.32 | 67.97 |
38
| [WeChatQRCode](./models/qrcode_wechatqrcode) | 100x100 | 7.04 | 37.68 | --- |
39
| [DaSiamRPN](./models/object_tracking_dasiamrpn) | 1280x720 | 36.15 | 705.48 | 76.82 |
40

F
fengyuentau 已提交
41 42
## License

43
OpenCV Zoo is licensed under the [Apache 2.0 license](./LICENSE). Please refer to licenses of different models.