Skip to content

Commit 973300b

Browse files
authored
Update handwritten-english-recognition-0001 (#2996)
* Update reference metric Signed-off-by: Junze Wu <[email protected]> * Update inaccurate help message Signed-off-by: Junze Wu <[email protected]>
1 parent 90a0ce5 commit 973300b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

demos/handwritten_text_recognition_demo/python/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ Options:
7777
Optional. Top k steps in looking up the decoded
7878
character, until a designated one is found
7979
-ob OUTPUT_BLOB, --output_blob OUTPUT_BLOB
80-
Optional. Name of the output layer of the model. Default is 'output'
80+
Optional. Name of the output layer of the model.
81+
Default is None, in which case the demo will read
82+
the output name from the model, assuming there is
83+
only 1 output layer
8184
```
8285

8386
The decoding char list files provided within Open Model Zoo and for Japanese it is the `<omz_dir>/data/dataset_classes/kondate_nakayosi.txt` file, while for Simplified Chinese it is the `<omz_dir>/data/dataset_classes/scut_ept.txt` file, and for English it is the `<omz_dir>/data/dataset_classes/gnhk.txt` file. For example, to do inference on a CPU with the OpenVINO&trade; toolkit pre-trained `handwritten-japanese-recognition-0001` model, run the following command:

models/intel/handwritten-english-recognition-0001/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The network is able to recognize English text consisting of characters in the [G
1515
| ------------------------- | --------- |
1616
| GFlops | 1.3182 |
1717
| MParams | 0.1413 |
18-
| Accuracy on GNHK test subset (excluding images wider than 2000px after resized to height 96px with aspect ratio) | 81.5% |
18+
| Accuracy on GNHK test subset (excluding images wider than 2000px after resized to height 96px with aspect ratio) | 82.0% |
1919
| Source framework | PyTorch\* |
2020

2121
> **Note:** to achieve the accuracy, images from the GNHK test set should be binarized using adaptive thresholding, and preprocessed into single-line text images, using the coordinates from the accompanying JSON annotation files in the GNHK dataset. See `<omz_dir>/models/intel/handwritten-english-recognition-0001/preprocess_gnhk.py`.

models/intel/handwritten-english-recognition-0001/accuracy-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ models:
2727

2828
metrics:
2929
- type: label_level_recognition_accuracy
30-
reference: 0.815
30+
reference: 0.820

0 commit comments

Comments
 (0)