Closed ghost closed 4 years ago
Yeah, it supports variable text length.
Set keep_ratio = True
Just create dataset with different label length and train(e.g. train.txt).
1.jpg
12
2.jpg
123
thank you very much. Words cannot describe my gratitude to you.
I have two questions:
Do your codes currently support training with variable text length?
Does "keep_ratio = True" work for training? If I want to train the model with with variable length images should I also have to modify create_dataset.py?
in this site (https://github.com/meijieru/crnn.pytorch) the author mentions that "If you want to train with variable length images (keep the origin ratio for example), please modify the tool/create_dataset.py and sort the image according to the text length"
Thanks a lot.