Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/WenmuZhou/PytorchOCR into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	readme.md
  • Loading branch information
WenmuZhou committed Aug 30, 2023
2 parents 34e66c7 + 1fdba01 commit 4a507ac
Show file tree
Hide file tree
Showing 44 changed files with 749 additions and 1,571 deletions.
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Global:
epoch_num: 500
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/ch_PP-OCR_V3_det/
output_dir: ./output/det/ch_PP-OCR_V3_det_cml/
eval_epoch_step: [0, 1]
cal_metric_during_train: false
pretrained_model:
Expand Down
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_dml.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
output_dir: ./output/ch_PP-OCR_V3_det/
output_dir: ./output/det/ch_PP-OCR_V3_det_dml/
eval_epoch_step: [0, 1]
cal_metric_during_train: false
pretrained_model:
Expand Down
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Global:
epoch_num: 500
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/ch_PP-OCR_V3_det/
output_dir: ./output/det/ch_PP-OCR_V3_det/
eval_epoch_step: [0, 1]
cal_metric_during_train: false
pretrained_model:
Expand Down
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Global:
epoch_num: &epoch_num 500
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/ch_PP-OCRv4_cml
output_dir: ./output/det/ch_PP-OCRv4_cml
eval_epoch_step: [0, 1]
cal_metric_during_train: false
pretrained_model:
Expand Down
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Global:
epoch_num: &epoch_num 500
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/ch_PP-OCRv4/
output_dir: ./output/det/ch_PP-OCRv4/
eval_epoch_step: [0, 1]
cal_metric_during_train: false
pretrained_model:
Expand Down
2 changes: 1 addition & 1 deletion configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_teacher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Global:
epoch_num: &epoch_num 500
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/ch_PP-OCRv4/
output_dir: ./output/det/h_PP-OCRv4_hgnet/
eval_epoch_step: [0, 1]
cal_metric_during_train: false
pretrained_model:
Expand Down
6 changes: 2 additions & 4 deletions configs/rec/PP-OCRv3/ch_PP-OCRv3_rec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Global:
epoch_num: 500
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/rec_ppocr_v3
output_dir: ./output/rec/rec_ppocr_v3
eval_epoch_step: [0, 1]
cal_metric_during_train: true
pretrained_model:
checkpoints:
use_tensorboard: false
infer_mode: false
infer_img: doc/imgs_words/ch/word_1.jpg
character_dict_path: &character_dict_path ppocr/utils/ppocr_keys_v1.txt
max_text_length: &max_text_length 25
infer_mode: false
use_space_char: &use_space_char true

Export:
Expand Down Expand Up @@ -49,8 +49,6 @@ Architecture:
depth: 2
hidden_dims: 120
use_guide: True
Head:
fc_decay: 0.00001
- SARHead:
enc_dim: 512
max_text_length: *max_text_length
Expand Down
6 changes: 2 additions & 4 deletions configs/rec/PP-OCRv3/ch_PP-OCRv3_rec_distillation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Global:
epoch_num: 800
log_smooth_window: 20
print_batch_step: 10
output_dir: ./output/rec_ppocr_v3_distillation
output_dir: ./output/rec/rec_ppocr_v3_distillation
eval_epoch_step: [0, 1]
cal_metric_during_train: true
pretrained_model:
checkpoints:
use_tensorboard: false
infer_mode: false
infer_img: doc/imgs_words/ch/word_1.jpg
character_dict_path: &character_dict_path ppocr/utils/ppocr_keys_v1.txt
max_text_length: &max_text_length 25
infer_mode: false
use_space_char: &use_space_char true

Export:
Expand Down Expand Up @@ -59,8 +59,6 @@ Architecture:
depth: 2
hidden_dims: 120
use_guide: True
Head:
fc_decay: 0.00001
- SARHead:
enc_dim: 512
max_text_length: *max_text_length
Expand Down
Empty file.
132 changes: 0 additions & 132 deletions configs/rec/PP-OCRv3/multi_language/arabic_PP-OCRv3_rec.yml

This file was deleted.

132 changes: 0 additions & 132 deletions configs/rec/PP-OCRv3/multi_language/chinese_cht_PP-OCRv3_rec.yml

This file was deleted.

Loading

0 comments on commit 4a507ac

Please sign in to comment.