I am trying to train rec model - en_PP-OCRv3_rec_train but i am getting an AssertionError: invalid input 'img' in DecodeImage #12527
-
i am using an ubuntu machine. and i have installed all requirements to run and train paddle OCR. I have modified the config file configs/rec/PP-OCRv3/en_PP-OCRv3_rec.yml (i just set the training image and label path. testing image and label path)
i am using scut dataset which i downloaded from online. which contains .txt file annotation in this format - filename tab text
i have done the dos2unix conversions for these files since they are copied from windows pc. when i run the script - i am getting this error -
what is the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 29 replies
-
Please check whether the data reading path, label format, etc. are correct or not! |
Beta Was this translation helpful? Give feedback.
-
please help anyone? |
Beta Was this translation helpful? Give feedback.
-
Is the data directory organized like this?
rec_train.txt
|
Beta Was this translation helpful? Give feedback.
-
@kishore-work-hard, your data works well for me.
|
Beta Was this translation helpful? Give feedback.
-
The issue has been resolved. Thank you @GreatV For Your Support. |
Beta Was this translation helpful? Give feedback.
The issue has been resolved.
I wrote a script to remove images with length = 0 and type !=
<byte>
Thank you @GreatV For Your Support.
You Saved Me