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

Error: List index out of range #4378

Closed shraddha291996 closed 2 years ago

shraddha291996 commented 3 years ago

config Hello, I am using the recognition model pgnet_r50 for my handwritten dataset, while training the model I am getting following error, although I have checked the labeling its correct. Can anyone suggest what could be the issue? [2021/10/18 19:44:14] root INFO: Initialize indexs of datasets:['./train_data/total_text/train/train.txt'] [2021/10/18 19:44:14] root ERROR: When parsing line 8, error happened with msg: list index out of range

Attached is the config file of e2e_r50_vd_pg.yml. Does described max_text_length creating issue?

Thank you

shraddha291996 commented 3 years ago

I am using the following command for training ; python tools/train.py -c configs/e2e/e2e_r50_vd_pg.yml -o Global.pretrained_model=./pretrain_models/train_step1/best_accuracy Global.load_static_weights=False

LDOUBLEV commented 3 years ago

Please take place char dict file as your char label file. image

paddle-bot-old[bot] commented 2 years ago

Since you haven\'t replied for more than 3 months, we have closed this issue/pr. If the problem 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. 由于您超过三个月未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。