提交 09ebcb43 编写于 作者: T tink2123

Merge branch 'dygraph_doc' of https://github.com/tink2123/PaddleOCR into dygraph

...@@ -3,7 +3,7 @@ Global: ...@@ -3,7 +3,7 @@ Global:
epoch_num: 1200 epoch_num: 1200
log_smooth_window: 20 log_smooth_window: 20
print_batch_step: 10 print_batch_step: 10
save_model_dir: ./output/det_rc/det_r50_vd/ save_model_dir: ./output/det_r50_vd/
save_epoch_step: 1200 save_epoch_step: 1200
# evaluation is run every 5000 iterations after the 4000th iteration # evaluation is run every 5000 iterations after the 4000th iteration
eval_batch_step: [5000,4000] eval_batch_step: [5000,4000]
......
...@@ -120,11 +120,11 @@ word_dict.txt 每行有一个单字,将字符与数字索引映射在一起, ...@@ -120,11 +120,11 @@ word_dict.txt 每行有一个单字,将字符与数字索引映射在一起,
`ppocr/utils/dict/french_dict.txt` 是一个包含118个字符的法文字典 `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个字符的英文字典 `ppocr/utils/dict/en_dict.txt` 是一个包含63个字符的英文字典
......
...@@ -114,7 +114,7 @@ In `word_dict.txt`, there is a single word in each line, which maps characters a ...@@ -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/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/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 ...@@ -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 `ppocr/utils/dict/en_dict.txt` is a English dictionary with 63 characters
You can use it on demand. 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**, 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**,
......
...@@ -32,9 +32,8 @@ class ClsMetric(object): ...@@ -32,9 +32,8 @@ class ClsMetric(object):
def get_metric(self): def get_metric(self):
""" """
return metircs { return metrics {
'acc': 0, 'acc': 0
'norm_edit_dis': 0,
} }
""" """
acc = self.correct_num / self.all_num acc = self.correct_num / self.all_num
......
...@@ -57,7 +57,7 @@ class DetMetric(object): ...@@ -57,7 +57,7 @@ class DetMetric(object):
def get_metric(self): def get_metric(self):
""" """
return metircs { return metrics {
'precision': 0, 'precision': 0,
'recall': 0, 'recall': 0,
'hmean': 0 'hmean': 0
......
...@@ -43,7 +43,7 @@ class RecMetric(object): ...@@ -43,7 +43,7 @@ class RecMetric(object):
def get_metric(self): def get_metric(self):
""" """
return metircs { return metrics {
'acc': 0, 'acc': 0,
'norm_edit_dis': 0, 'norm_edit_dis': 0,
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册