parent
4eb359e8a7
commit
d24a39df88
@ -1,42 +0,0 @@
|
|||||||
Global:
|
|
||||||
algorithm: CRNN
|
|
||||||
use_gpu: true
|
|
||||||
epoch_num: 300
|
|
||||||
log_smooth_window: 20
|
|
||||||
print_batch_step: 10
|
|
||||||
save_model_dir: output
|
|
||||||
save_epoch_step: 3
|
|
||||||
eval_batch_step: 2000
|
|
||||||
train_batch_size_per_card: 256
|
|
||||||
test_batch_size_per_card: 256
|
|
||||||
image_shape: [3, 32, 100]
|
|
||||||
max_text_length: 25
|
|
||||||
character_type: ch
|
|
||||||
character_dict_path: ./ppocr/utils/ppocr_keys_v1.txt
|
|
||||||
loss_type: ctc
|
|
||||||
reader_yml: ./configs/rec/rec_chinese_reader.yml
|
|
||||||
pretrain_weights:
|
|
||||||
infer_img: ./infer_img
|
|
||||||
|
|
||||||
Architecture:
|
|
||||||
function: ppocr.modeling.architectures.rec_model,RecModel
|
|
||||||
|
|
||||||
Backbone:
|
|
||||||
function: ppocr.modeling.backbones.rec_mobilenet_v3,MobileNetV3
|
|
||||||
scale: 0.5
|
|
||||||
model_name: small
|
|
||||||
|
|
||||||
Head:
|
|
||||||
function: ppocr.modeling.heads.rec_ctc_head,CTCPredict
|
|
||||||
encoder_type: rnn
|
|
||||||
SeqRNN:
|
|
||||||
hidden_size: 48
|
|
||||||
|
|
||||||
Loss:
|
|
||||||
function: ppocr.modeling.losses.rec_ctc_loss,CTCLoss
|
|
||||||
|
|
||||||
Optimizer:
|
|
||||||
function: ppocr.optimizer,AdamDecay
|
|
||||||
base_lr: 0.001
|
|
||||||
beta1: 0.9
|
|
||||||
beta2: 0.999
|
|
@ -1,13 +0,0 @@
|
|||||||
TrainReader:
|
|
||||||
reader_function: ppocr.data.rec.dataset_traversal,SimpleReader
|
|
||||||
num_workers: 8
|
|
||||||
img_set_dir: ./train_data
|
|
||||||
label_file_path: ./train_data/train_label.txt
|
|
||||||
|
|
||||||
EvalReader:
|
|
||||||
reader_function: ppocr.data.rec.dataset_traversal,SimpleReader
|
|
||||||
img_set_dir: ./train_data
|
|
||||||
label_file_path: ./train_data/test_label.txt
|
|
||||||
|
|
||||||
TestReader:
|
|
||||||
reader_function: ppocr.data.rec.dataset_traversal,SimpleReader
|
|
@ -1,10 +0,0 @@
|
|||||||
#. /paddle/set_env.sh↩
|
|
||||||
export CUDA_VISIBLE_DEVICES="0,1,2,3"
|
|
||||||
export FLAGS_fraction_of_gpu_memory_to_use=1.0
|
|
||||||
python_bin_dir="/opt/_internal/cpython-3.7.0/bin/"
|
|
||||||
alias python=$python_bin_dir"python3.7"
|
|
||||||
alias pip=$python_bin_dir"pip3.7"
|
|
||||||
alias ipython=$python_bin_dir"ipython3"
|
|
||||||
export LD_LIBRARY_PATH=/opt/_internal/cpython-3.7.0/lib:$LD_LIBRARY_PATH
|
|
||||||
export PYTHONPATH=$PYTHONPATH:.
|
|
||||||
ldconfig
|
|
Loading…
Reference in new issue