PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
42.92k stars 7.71k forks source link

ocr训练(检测+识别),best_accuracy模型都没有生成的问题 #11210

Closed zyj0721 closed 3 months ago

zyj0721 commented 10 months ago

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

`Global: debug: false use_gpu: false epoch_num: 10 log_smooth_window: 2 print_batch_step: 1 save_model_dir: ./output/rec_ppocr_v3 save_epoch_step: 3 eval_batch_step: [0, 2] cal_metric_during_train: true pretrained_model: ./pretrain_models/ch_ppocr_server_v2.0_rec_train/best_accuracy.pdparams checkpoints: save_inference_dir: use_visualdl: false infer_img: doc/imgs_words/ch/word_1.jpg character_dict_path: ppocr/utils/ppocr_keys_v1.txt max_text_length: &max_text_length 250 infer_mode: false use_space_char: true distributed: true save_res_path: ./output/rec/predicts_ppocrv3.txt

Optimizer: name: Adam beta1: 0.9 beta2: 0.999 lr: name: Cosine learning_rate: 0.001 warmup_epoch: 5 regularizer: name: L2 factor: 3.0e-05

Architecture: model_type: rec algorithm: SVTR_LCNet Transform: Backbone: name: MobileNetV1Enhance scale: 0.5 last_conv_stride: [1, 2] last_pool_type: avg last_pool_kernel_size: [2, 2] Head: name: MultiHead head_list:

Loss: name: MultiLoss loss_config_list:

PostProcess:
name: CTCLabelDecode

Metric: name: RecMetric main_indicator: acc ignore_space: False

Train: dataset: name: SimpleDataSet data_dir: ./train_data/ ext_op_transform_idx: 1 label_file_list:

能够正常生成iter_epoch_n.文件,但是一直没有best_accuracy.,请问这是什么原因呢?

图片

xiongwujun commented 10 months ago

同问

laokamo commented 6 months ago

我也遇到这样的问题

Architecture: model_type: det algorithm: DB Transform: null Backbone: name: PPHGNet_small det: True Neck: name: LKPAN out_channels: 256 intracl: true Head: name: PFHeadLocal k: 50 mode: "large"

Loss: name: DBLoss balance_loss: true main_loss_type: DiceLoss alpha: 5 beta: 10 ohem_ratio: 3

Optimizer: name: Adam beta1: 0.9 beta2: 0.999 lr: name: Cosine learning_rate: 0.01 #(8*8c) warmup_epoch: 2 regularizer: name: L2 factor: 1e-6

PostProcess: name: DBPostProcess thresh: 0.3 box_thresh: 0.6 max_candidates: 1000 unclip_ratio: 1.5

Metric: name: DetMetric main_indicator: hmean

Train: dataset: name: SimpleDataSet data_dir: ./train_data/ label_file_list:

Eval: dataset: name: SimpleDataSet data_dir: ./train_data/ label_file_list:

image image