LineHTR icon indicating copy to clipboard operation
LineHTR copied to clipboard

maxTextLen cannot be increased to be > 100

Open marijakotur opened this issue 3 years ago • 0 comments

Please have a look at the FAQ section in the README - maybe your question is already answered there. Only issues concerning the repositories code will be answered. The following questions will not be answered:

  • How to convert dataset X into IAM format?
  • How to modify the model to recognize text-lines/more characters/...?
  • General/theoretical questions regarding (handwritten) text recognition.

If you create a new issue, please provide the following information:

  1. Versions
  • TensorFlow version 2.4.0
  • Python version 3.6.9
  • Operating system Red Hat Enterprise Linux Server 7.9
  1. Issue
  • Which result/error did you get?
  • ValueError: Paddings must be non-negative for '{{node Optimizer/gradients/RNN/Slice_grad/Pad}} = Pad[T=DT_FLOAT, Tpaddings=DT_INT32](Optimizer/gradients/RNN/Squeeze_grad/Reshape, Optimizer/gradients/RNN/Slice_grad/concat)' with input shapes: [50,102,1,512], [4,2] and with computed input tensors: input[1] = <[0 0][0 -2][0 3][0 0]>.
  • If you think the result is wrong - what result did you expect instead?
  • How to reproduce the issue? set maxTextLen = 102, replace 100 in setupRNN with Model.maxTextLen
  • Provide all necessary data

marijakotur avatar Jul 09 '21 16:07 marijakotur