PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

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

Open zengweigit opened this issue 1 year ago • 5 comments

🔎 Search before asking

  • [X] I have searched the PaddleOCR Docs and found no similar bug report.
  • [X] I have searched the PaddleOCR Issues and found no similar bug report.
  • [X] I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 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

zengweigit avatar Sep 26 '24 06:09 zengweigit

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

GreatV avatar Sep 26 '24 07:09 GreatV

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

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

zengweigit avatar Sep 27 '24 02:09 zengweigit

这应该是bug

GreatV avatar Sep 27 '24 02:09 GreatV

用的是哪个版本的paddleocr呀

GreatV avatar Sep 27 '24 02:09 GreatV

用的是哪个版本的paddleocr呀

paddleocr2.8.0

zengweigit avatar Sep 27 '24 02:09 zengweigit

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Dec 27 '24 02:12 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jan 10 '25 02:01 github-actions[bot]