PaddleOCR/configs/cls/cls_mv3.yml

44 lines
928 B
YAML
Raw Normal View History

2020-09-01 13:44:51 +08:00
Global:
algorithm: CLS
2020-09-14 10:41:43 +08:00
use_gpu: False
epoch_num: 100
2020-09-01 13:44:51 +08:00
log_smooth_window: 20
2020-09-14 10:41:43 +08:00
print_batch_step: 100
save_model_dir: output/cls_mv3
2020-09-01 13:44:51 +08:00
save_epoch_step: 3
2020-09-14 10:41:43 +08:00
eval_batch_step: 500
train_batch_size_per_card: 512
test_batch_size_per_card: 512
image_shape: [3, 48, 192]
label_list: ['0','180']
distort: True
2020-09-01 13:44:51 +08:00
reader_yml: ./configs/cls/cls_reader.yml
pretrain_weights:
2020-09-14 10:41:43 +08:00
checkpoints:
2020-09-01 13:44:51 +08:00
save_inference_dir:
2020-09-14 10:41:43 +08:00
infer_img:
2020-09-01 13:44:51 +08:00
Architecture:
function: ppocr.modeling.architectures.cls_model,ClsModel
Backbone:
function: ppocr.modeling.backbones.rec_mobilenet_v3,MobileNetV3
scale: 0.35
2020-09-14 10:41:43 +08:00
model_name: small
2020-09-01 13:44:51 +08:00
Head:
function: ppocr.modeling.heads.cls_head,ClsHead
class_dim: 2
Loss:
function: ppocr.modeling.losses.cls_loss,ClsLoss
Optimizer:
function: ppocr.optimizer,AdamDecay
base_lr: 0.001
beta1: 0.9
beta2: 0.999
decay:
2020-09-14 10:41:43 +08:00
function: cosine_decay
step_each_epoch: 1169
total_epoch: 100