Skip to content

Commit 6a66e0d

Browse files
authored
Renaming model files to have more information on architecture, training data and more (#7)
* add suffix of training dataset, arch & upload time to each model * update DB-IC15 benchmark results
1 parent 001725d commit 6a66e0d

20 files changed

+39
-20
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ A zoo for models tuned for OpenCV DNN with benchmarks on different platforms.
55
Guidelines:
66
- 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`.
77
- To run benchmark on your hardware settings, please refer to [benchmark/README](./benchmark/README.md).
8+
- Understand model filename: `<topic>_<model_name>_<dataset>_<arch>_<upload_time>`
9+
- `<topic>`: research topics, such as `face detection` etc.
10+
- `<model_name>`: exact model names.
11+
- `<dataset>`: (Optional) the dataset that the model is trained with.
12+
- `<arch>`: (Optional) the backbone architecture of the model.
13+
- `<upload_time>`: the time when the model is uploaded, meaning the latest version of this model unless specified.
814

915
## Models & Benchmarks
1016

@@ -16,19 +22,19 @@ Hardware Setup:
1622
***Important Notes***:
1723
- 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.
1824
- 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.
1926
- View [benchmark/config](./benchmark/config) for more details on benchmarking different models.
2027

21-
| Model | Input Size | CPU x86_64 (ms) | CPU ARM (ms) | GPU CUDA (ms)* |
28+
| Model | Input Size | CPU x86_64 (ms) | CPU ARM (ms) | GPU CUDA (ms) |
2229
|-------|------------|-----------------|--------------|---------------|
2330
| [YuNet](./models/face_detection_yunet) | 160x120 | 1.45 | 6.22 | 12.18 |
24-
| [DB](./models/text_detection_db) | 640x480 | 137.38 | 2780.78 | 220.52 |
31+
| [DB-IC15](./models/text_detection_db) | 640x480 | 142.91 | 2835.91 | 208.41 |
32+
| [DB-TD500](./models/text_detection_db) | 640x480 | 142.91 | 2841.71 | 210.51 |
2533
| [CRNN](./models/text_recognition_crnn) | 100x32 | 50.21 | 234.32 | 196.15 |
2634
| [SFace](./models/face_recognition_sface) | 112x112 | 8.65 | 99.20 | 24.88 |
2735
| [PP-ResNet](./models/image_classification_ppresnet) | 224x224 | 56.05 | 602.58 | 98.64 |
2836
| [PP-HumanSeg](./models/human_segmentation_pphumanseg) | 192x192 | 19.92 | 105.32 | 67.97 |
2937

30-
*: Batch size is 1.
31-
3238
## License
3339

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

benchmark/config/face_detection_yunet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Benchmark:
1616

1717
Model:
1818
name: "YuNet"
19-
modelPath: "models/face_detection_yunet/face_detection_yunet.onnx"
19+
modelPath: "models/face_detection_yunet/face_detection_yunet_2021sep.onnx"
2020
confThreshold: 0.6
2121
nmsThreshold: 0.3
2222
topK: 5000

benchmark/config/face_recognition_sface.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Benchmark:
1414

1515
Model:
1616
name: "SFace"
17-
modelPath: "models/face_recognition_sface/face_recognition_sface.onnx"
17+
modelPath: "models/face_recognition_sface/face_recognition_sface_2021sep.onnx"

benchmark/config/human_segmentation_pphumanseg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Benchmark:
1515

1616
Model:
1717
name: "PPHumanSeg"
18-
modelPath: "models/human_segmentation_pphumanseg/human_segmentation_pphumanseg.onnx"
18+
modelPath: "models/human_segmentation_pphumanseg/human_segmentation_pphumanseg_2021oct.onnx"

benchmark/config/image_classification_ppresnet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Benchmark:
1616

1717
Model:
1818
name: "PPResNet"
19-
modelPath: "models/image_classification_ppresnet/image_classification_ppresnet50.onnx"
19+
modelPath: "models/image_classification_ppresnet/image_classification_ppresnet50_2021oct.onnx"
2020
labelPath: "models/image_classification_ppresnet/imagenet_labels.txt"

benchmark/config/text_detection_db.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Benchmark:
1515

1616
Model:
1717
name: "DB"
18-
modelPath: "models/text_detection_db/text_detection_db.onnx"
18+
modelPath: "models/text_detection_db/text_detection_DB_TD500_resnet18_2021sep.onnx"
1919
binaryThreshold: 0.3
2020
polygonThreshold: 0.5
2121
maxCandidates: 200

benchmark/config/text_recognition_crnn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Benchmark:
1414

1515
Model:
1616
name: "CRNN"
17-
modelPath: "models/text_recognition_crnn/text_recognition_crnn.onnx"
17+
modelPath: "models/text_recognition_crnn/text_recognition_CRNN_VGG_BiLSTM_CTC_2021sep.onnx"

models/face_detection_yunet/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
YuNet is a light-weight, fast and accurate face detection model, which achieves 0.834(AP_easy), 0.824(AP_medium), 0.708(AP_hard) on the WIDER Face validation set.
44

5+
Notes:
6+
- Model source: [here](https://github.com/ShiqiYu/libfacedetection.train/blob/a61a428929148171b488f024b5d6774f93cdbc13/tasks/task1/onnx/yunet.onnx).
7+
- For details on training this model, please visit https://github.com/ShiqiYu/libfacedetection.train.
8+
59
## Demo
610

711
Run the following command to try the demo:

models/face_detection_yunet/face_detection_yunet.onnx renamed to models/face_detection_yunet/face_detection_yunet_2021sep.onnx

File renamed without changes.

models/face_recognition_sface/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
SFace: Sigmoid-Constrained Hypersphere Loss for Robust Face Recognition
44

5-
SFace is contributed by [Yaoyao Zhong](https://github.com/zhongyy/SFace). [face_recognition_sface.onnx](./face_recognition_sface.onnx) is converted from the model from https://github.com/zhongyy/SFace thanks to [Chengrui Wang](https://github.com/crywang).
6-
75
Note:
8-
- There is [a PR for OpenCV adding this model](https://github.com/opencv/opencv/pull/20422) to work with OpenCV DNN in C++ implementation.
9-
- Support 5-landmark warp for now.
10-
- `demo.py` requires [../face_detection_yunet](../face_detection_yunet) to run.
6+
- SFace is contributed by [Yaoyao Zhong](https://github.com/zhongyy/SFace).
7+
- [face_recognition_sface_2021sep.onnx](./face_recognition_sface_2021sep.onnx) is converted from the model from https://github.com/zhongyy/SFace thanks to [Chengrui Wang](https://github.com/crywang).
8+
- Support 5-landmark warpping for now (2021sep)
119

1210
## Demo
1311

12+
***NOTE***: This demo uses [../face_detection_yunet](../face_detection_yunet) as face detector, which supports 5-landmark detection for now (2021sep).
13+
1414
Run the following command to try the demo:
1515
```shell
1616
# recognize on images

0 commit comments

Comments
 (0)