Skip to content

Commit

Permalink
Merge branch 'dygraph' into dygraph_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 committed Dec 11, 2020
2 parents 61b94e4 + 569deed commit 3feb56f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion configs/det/det_r50_vd_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions doc/doc_ch/recognition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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个字符的英文字典

Expand Down
3 changes: 2 additions & 1 deletion doc/doc_en/recognition_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ 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

`ppocr/utils/dict/german_dict.txt` is a German dictionary with 131 characters

`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**,
Expand Down
5 changes: 2 additions & 3 deletions ppocr/metrics/cls_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ def __call__(self, pred_label, *args, **kwargs):

def get_metric(self):
"""
return metircs {
'acc': 0,
'norm_edit_dis': 0,
return metrics {
'acc': 0
}
"""
acc = self.correct_num / self.all_num
Expand Down
2 changes: 1 addition & 1 deletion ppocr/metrics/det_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __call__(self, preds, batch, **kwargs):

def get_metric(self):
"""
return metircs {
return metrics {
'precision': 0,
'recall': 0,
'hmean': 0
Expand Down
2 changes: 1 addition & 1 deletion ppocr/metrics/rec_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __call__(self, pred_label, *args, **kwargs):

def get_metric(self):
"""
return metircs {
return metrics {
'acc': 0,
'norm_edit_dis': 0,
}
Expand Down

0 comments on commit 3feb56f

Please sign in to comment.