crnn icon indicating copy to clipboard operation
crnn copied to clipboard

Changing the maximum length of string

Open stalagmite7 opened this issue 6 years ago • 2 comments

@bgshih , I have a dataset where the labels exceed the 26-character max length that the model needs, but I am unable to find where in the code I need to make the change. I have changed the line in config.lua where it assigns maxT=26, but the is a tensor size mismatch during validation because the outputBatch after having passed through the network is of length 26 still. Could you tell me where I need to fix it in the code?

stalagmite7 avatar Aug 15 '17 16:08 stalagmite7

@stalagmite7 I have tried maxT = 52 but I got error in tensor size mismatch, so I changed the 4th maxpooling window to 1x1 instead of 1x2 . then it is start training successfully but after the training finish , the result was as shown in the screenshot "it just detect the letters in the first or last 26 frames and the other frames return ( - )", this make me very confusing about how the network divide the image in number of frame like 26 or 52.. I hope if @bgshih can a little bit explain this to us.. Thank you

test

ibrahimsoliman97 avatar Aug 16 '17 06:08 ibrahimsoliman97

I didn't have time to change the model this time around, so I just made sure my inputs are all within 26 characters.

stalagmite7 avatar Aug 18 '17 20:08 stalagmite7