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
43.08k stars 7.72k forks source link

请问为什么每轮都要 save model 和 Initialize indexs of datasets?有没有配置可以关掉的? #13910

Open zengweigit opened 1 week ago

zengweigit commented 1 week ago

🔎 Search before asking

🐛 Bug (问题描述)

image

🏃‍♂️ Environment (运行环境)

ubuntu24.2

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

运行命令 python -m paddle.distributed.launch --gpus 0,1 tools/train.py -c /opt/PaddleOCR/configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml -o \ Global.pretrained_model=/opt/PaddleOCR/pretrain_models/ch_PP-OCRv3_det_distill_train/student.pdparams \ Global.save_model_dir=/opt/PaddleOCR/output/train/det \ Global.epoch_num=300 \ Global.eval_batch_step="[0, 772]" \ Global.save_epoch_step=10000 \ Optimizer.lr.name=Const \ Optimizer.lr.learning_rate=0.0005 \ Optimizer.lr.warmup_epoch=0 \ Train.dataset.data_dir=/opt/PaddleOCR/train_data \ Train.dataset.label_file_list="[/opt/PaddleOCR/train_data/2024092501/det/train.txt, /opt/PaddleOCR/train_data/2024092502/det/train.txt]" \ Train.dataset.ratio_list="[0.5, 0.5]" \ Train.loader.batch_size_per_card=16 \ Train.loader.num_workers=8 \ Eval.dataset.data_dir=/opt/PaddleOCR/train_data \ Eval.dataset.label_file_list="[/opt/PaddleOCR/train_data/2024092501/det/test.txt, /opt/PaddleOCR/train_data/2024092502/det/test.txt]" \ Eval.loader.batch_size_per_card=16 \ Eval.loader.num_workers=8

GreatV commented 1 week ago

可以参考我们的配置文档描述 https://paddlepaddle.github.io/PaddleOCR/ppocr/blog/config.html

zengweigit commented 1 week ago

可以参考我们的配置文档描述 https://paddlepaddle.github.io/PaddleOCR/ppocr/blog/config.html

image 是设置save_epoch_step吗?没效果啊,是我命令有问题吗? image image

GreatV commented 1 week ago

这应该是bug

GreatV commented 1 week ago

用的是哪个版本的paddleocr呀

zengweigit commented 1 week ago

用的是哪个版本的paddleocr呀

paddleocr2.8.0