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.44k stars 7.66k forks source link

训练ppocrv4 报错ValueError: (InvalidArgument) The input of Op(Conv) should be a 4-D or 5-D Tensor. #11200

Open wangyang581 opened 10 months ago

wangyang581 commented 10 months ago

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

我镜像中用相同的数据可以用ch_PP-OCRv4_rec_hgnet.yml配置文件训练,也可以用v3的配置文件训练,只有ch_PP-OCRv4_rec_distill.yml这个配置文件报错。

我采用的ch_PP-OCRv4_rec_distill.yml配置文件的内容如下:

Global: debug: false use_gpu: true epoch_num: 200 log_smooth_window: 20 print_batch_step: 10 save_model_dir: ./output/rec_dkd_400w_svtr_ctc_lcnet_blank_dkd0.1/ save_epoch_step: 40 eval_batch_step:

请问我要如何修改呢?

704572066 commented 10 months ago

很多人都遇到这个问题

lizhq commented 9 months ago

yes , 此预训练模型对应下面配置文件

Global: debug: false use_gpu: true epoch_num: 20 log_smooth_window: 20 print_batch_step: 1 save_model_dir: /home/aistudio/output/Student/pt save_epoch_step: 20 eval_batch_step: