crnn.pytorch icon indicating copy to clipboard operation
crnn.pytorch copied to clipboard

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

Open txhai opened this issue 6 years ago • 5 comments

Could you please explain this?

txhai avatar May 25 '18 09:05 txhai

same

maichm avatar May 30 '18 13:05 maichm

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

meijieru avatar May 31 '18 07:05 meijieru

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?

renxinlin avatar Nov 25 '18 18:11 renxinlin

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

blueclowd avatar May 15 '20 15:05 blueclowd

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.

alnah005 avatar Sep 17 '21 20:09 alnah005