modified config
parent
6aa35c18ae
commit
c53a6e5137
|
@ -10,6 +10,8 @@ __pycache__/
|
||||||
inference/
|
inference/
|
||||||
inference_results/
|
inference_results/
|
||||||
output/
|
output/
|
||||||
|
train_data
|
||||||
|
log
|
||||||
|
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
*.vs
|
*.vs
|
||||||
|
|
|
@ -96,7 +96,7 @@ Eval:
|
||||||
- SARLabelEncode: # Class handling label
|
- SARLabelEncode: # Class handling label
|
||||||
- RobustScannerRecResizeImg:
|
- RobustScannerRecResizeImg:
|
||||||
image_shape: [3, 48, 48, 160]
|
image_shape: [3, 48, 48, 160]
|
||||||
max_seq_len: *max_text_length
|
max_text_length: *max_text_length
|
||||||
width_downsample_ratio: 0.25
|
width_downsample_ratio: 0.25
|
||||||
- KeepKeys:
|
- KeepKeys:
|
||||||
keep_keys: ['image', 'label', 'valid_ratio', 'word_positons'] # dataloader will return list in this order
|
keep_keys: ['image', 'label', 'valid_ratio', 'word_positons'] # dataloader will return list in this order
|
||||||
|
|
|
@ -12,7 +12,7 @@ Global:
|
||||||
checkpoints:
|
checkpoints:
|
||||||
save_inference_dir:
|
save_inference_dir:
|
||||||
use_visualdl: False
|
use_visualdl: False
|
||||||
infer_img:
|
infer_img: ./inference/rec_inference
|
||||||
# for data or label process
|
# for data or label process
|
||||||
character_dict_path: ppocr/utils/dict90.txt
|
character_dict_path: ppocr/utils/dict90.txt
|
||||||
max_text_length: &max_text_length 40
|
max_text_length: &max_text_length 40
|
||||||
|
@ -49,7 +49,7 @@ Architecture:
|
||||||
mask: True
|
mask: True
|
||||||
padding_idx: 92
|
padding_idx: 92
|
||||||
encode_value: False
|
encode_value: False
|
||||||
max_seq_len: 40
|
max_text_length: *max_text_length
|
||||||
|
|
||||||
Loss:
|
Loss:
|
||||||
name: SARLoss
|
name: SARLoss
|
||||||
|
@ -75,7 +75,7 @@ Train:
|
||||||
- RobustScannerRecResizeImg:
|
- RobustScannerRecResizeImg:
|
||||||
image_shape: [3, 48, 48, 160] # h:48 w:[48,160]
|
image_shape: [3, 48, 48, 160] # h:48 w:[48,160]
|
||||||
width_downsample_ratio: 0.25
|
width_downsample_ratio: 0.25
|
||||||
max_seq_len: *max_text_length
|
max_text_length: *max_text_length
|
||||||
- KeepKeys:
|
- KeepKeys:
|
||||||
keep_keys: ['image', 'label', 'valid_ratio', 'word_positons'] # dataloader will return list in this order
|
keep_keys: ['image', 'label', 'valid_ratio', 'word_positons'] # dataloader will return list in this order
|
||||||
loader:
|
loader:
|
||||||
|
@ -97,7 +97,7 @@ Eval:
|
||||||
- SARLabelEncode: # Class handling label
|
- SARLabelEncode: # Class handling label
|
||||||
- RobustScannerRecResizeImg:
|
- RobustScannerRecResizeImg:
|
||||||
image_shape: [3, 48, 48, 160]
|
image_shape: [3, 48, 48, 160]
|
||||||
max_seq_len: *max_text_length
|
max_text_length: *max_text_length
|
||||||
width_downsample_ratio: 0.25
|
width_downsample_ratio: 0.25
|
||||||
- KeepKeys:
|
- KeepKeys:
|
||||||
keep_keys: ['image', 'label', 'valid_ratio', 'word_positons'] # dataloader will return list in this order
|
keep_keys: ['image', 'label', 'valid_ratio', 'word_positons'] # dataloader will return list in this order
|
||||||
|
|
Loading…
Reference in New Issue