diff --git a/configs/det/det_r50_vd_db.yml b/configs/det/det_r50_vd_db.yml index 491983f57a59f0a4105712743a69a56c8212a0e9..b70ab7505a4c1970f084b6c02233526d7f7188b9 100644 --- a/configs/det/det_r50_vd_db.yml +++ b/configs/det/det_r50_vd_db.yml @@ -3,7 +3,7 @@ Global: epoch_num: 1200 log_smooth_window: 20 print_batch_step: 10 - save_model_dir: ./output/det_rc/det_r50_vd/ + save_model_dir: ./output/det_r50_vd/ save_epoch_step: 1200 # evaluation is run every 5000 iterations after the 4000th iteration eval_batch_step: [5000,4000] diff --git a/doc/doc_ch/recognition.md b/doc/doc_ch/recognition.md index 9dda9dedd6b1b04a6d10e29593f4d3a2361965f8..07217b4048e4442bc3a6b86d89851e2aa7511ffe 100644 --- a/doc/doc_ch/recognition.md +++ b/doc/doc_ch/recognition.md @@ -120,11 +120,11 @@ word_dict.txt 每行有一个单字,将字符与数字索引映射在一起, `ppocr/utils/dict/french_dict.txt` 是一个包含118个字符的法文字典 -`ppocr/utils/dict/japan_dict.txt` 是一个包含4399个字符的法文字典 +`ppocr/utils/dict/japan_dict.txt` 是一个包含4399个字符的日文字典 -`ppocr/utils/dict/korean_dict.txt` 是一个包含3636个字符的法文字典 +`ppocr/utils/dict/korean_dict.txt` 是一个包含3636个字符的韩文字典 -`ppocr/utils/dict/german_dict.txt` 是一个包含131个字符的法文字典 +`ppocr/utils/dict/german_dict.txt` 是一个包含131个字符的德文字典 `ppocr/utils/dict/en_dict.txt` 是一个包含63个字符的英文字典 diff --git a/doc/doc_en/recognition_en.md b/doc/doc_en/recognition_en.md index 14c3da73932f4972f40ccdbf8f41aa6880c60e99..196d01b994a54e53bf526b5143de079290b02d0f 100644 --- a/doc/doc_en/recognition_en.md +++ b/doc/doc_en/recognition_en.md @@ -114,7 +114,7 @@ In `word_dict.txt`, there is a single word in each line, which maps characters a `ppocr/utils/dict/french_dict.txt` is a French dictionary with 118 characters -`ppocr/utils/dict/japan_dict.txt` is a Japan dictionary with 4399 characters +`ppocr/utils/dict/japan_dict.txt` is a Japanese dictionary with 4399 characters `ppocr/utils/dict/korean_dict.txt` is a Korean dictionary with 3636 characters @@ -122,6 +122,7 @@ In `word_dict.txt`, there is a single word in each line, which maps characters a `ppocr/utils/dict/en_dict.txt` is a English dictionary with 63 characters + You can use it on demand. The current multi-language model is still in the demo stage and will continue to optimize the model and add languages. **You are very welcome to provide us with dictionaries and fonts in other languages**, diff --git a/ppocr/metrics/cls_metric.py b/ppocr/metrics/cls_metric.py index 03cbe9c80e12f483f3aa5da93a7bf58683596e6b..09817200234dc8d8b5d091ebbe33f07f4aad2cf6 100644 --- a/ppocr/metrics/cls_metric.py +++ b/ppocr/metrics/cls_metric.py @@ -32,9 +32,8 @@ class ClsMetric(object): def get_metric(self): """ - return metircs { - 'acc': 0, - 'norm_edit_dis': 0, + return metrics { + 'acc': 0 } """ acc = self.correct_num / self.all_num diff --git a/ppocr/metrics/det_metric.py b/ppocr/metrics/det_metric.py index 889a8e152254365f9c4d417125e2e642577660b5..0f9e94df42bb8f31ebc79693a01968d441b16faa 100644 --- a/ppocr/metrics/det_metric.py +++ b/ppocr/metrics/det_metric.py @@ -57,7 +57,7 @@ class DetMetric(object): def get_metric(self): """ - return metircs { + return metrics { 'precision': 0, 'recall': 0, 'hmean': 0 diff --git a/ppocr/metrics/rec_metric.py b/ppocr/metrics/rec_metric.py index 98817ad82952bb07a39d594cb6994a5460aff496..bd0f92e0d759204b33b6cb9b261531d61134605e 100644 --- a/ppocr/metrics/rec_metric.py +++ b/ppocr/metrics/rec_metric.py @@ -43,7 +43,7 @@ class RecMetric(object): def get_metric(self): """ - return metircs { + return metrics { 'acc': 0, 'norm_edit_dis': 0, }