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.74k stars 7.68k forks source link

paddleocr训练文本检测模型,跑1个epoch后自动退出 #3118

Closed wangpeng198754 closed 3 years ago

wangpeng198754 commented 3 years ago

QQ图片20210617122552

Global: use_gpu: true epoch_num: 1200 log_smooth_window: 20 print_batch_step: 10 save_model_dir: ./output/db_mv3/ save_epoch_step: 3

evaluation is run every 2000 iterations

eval_batch_step: [0,400]

1. If pretrained_model is saved in static mode, such as classification pretrained model

from static branch, load_static_weights must be set as True.

2. If you want to finetune the pretrained models we provide in the docs,

you should set load_static_weights as False.

load_static_weights: True cal_metric_during_train: False pretrained_model: ./pretrain_models/MobileNetV3_large_x0_5_pretrained/ checkpoints: save_inference_dir: ./output/det_db/ use_visualdl: False infer_img: ./doc/imgs_en/img_10.jpg save_res_path: ./output/det_db/predicts_db.txt

Architecture: model_type: det algorithm: DB Transform: Backbone: name: MobileNetV3 scale: 0.5 model_name: large Neck: name: DBFPN out_channels: 256 Head: name: DBHead k: 50

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: learning_rate: 0.001 regularizer: name: 'L2' factor: 0

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: C:/Users/Administrator/Desktop/tianchi/ label_file_list:

Eval: dataset: name: SimpleDataSet data_dir: C:/Users/Administrator/Desktop/tianchi/ label_file_list:

tink2123 commented 3 years ago

可以把 num worker 修改为 0 试试

Evezerest commented 3 years ago

The issue will be closed, if it is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 该问题将会被关闭,若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。