meijieru / crnn.pytorch

Convolutional recurrent network in pytorch
MIT License
2.4k stars 657 forks source link

For training with variable length, please sort the image according to the text length. #129

Open txhai opened 6 years ago

txhai commented 6 years ago

Could you please explain this?

maichm commented 6 years ago

same

meijieru commented 6 years ago

It means that when you create the lmdb dataset, you should sort the image according to its text length.

renxinlin commented 6 years ago

can i think it means train txt like this: [img0.png 1234 img1.png 12345 img2.png xyzwe img3.png 123456788] ,its sort by label length?

blueclowd commented 4 years ago

Hi @meijieru , Since lmdb stores the data in the dictionary, the sequences based on length is not preserved. Any ideas?

alnah005 commented 3 years ago

Hi @meijieru , Since lmdb stores the data in the dictionary, the sequences based on length is not preserved. Any ideas?

The images are retrieved based on the order they were written to lmdb dataset.