Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSTM: Training - Error in boxCreate: x < 0 and box off +quad #634

Closed
Shreeshrii opened this issue Jan 3, 2017 · 7 comments
Closed

LSTM: Training - Error in boxCreate: x < 0 and box off +quad #634

Shreeshrii opened this issue Jan 3, 2017 · 7 comments

Comments

@Shreeshrii
Copy link
Collaborator

Extracting font properties only
Rendered page 242 to file /tmp/tmp.lswGVDuVeX/bih/bih.Mangal.exp0.tif
Rendered page 244 to file /tmp/tmp.lswGVDuVeX/bih/bih.Sanskrit_2003.exp0.tif
Rendered page 239 to file /tmp/tmp.lswGVDuVeX/bih/bih.Siddhanta.exp0.tif
Error in boxCreate: x < 0 and box off +quad
Rendered page 243 to file /tmp/tmp.lswGVDuVeX/bih/bih.Mangal.exp0.tif
Stripped 1 unrenderable words
Error in boxCreate: x < 0 and box off +quad
Rendered page 245 to file /tmp/tmp.lswGVDuVeX/bih/bih.Sanskrit_2003.exp0.tif
Error in boxCreate: x < 0 and box off +quad
Rendered page 240 to file /tmp/tmp.lswGVDuVeX/bih/bih.Siddhanta.exp0.tif
Rendered page 244 to file /tmp/tmp.lswGVDuVeX/bih/bih.Mangal.exp0.tif
Rendered page 246 to file /tmp/tmp.lswGVDuVeX/bih/bih.Sanskrit_2003.exp0.tif
Error in boxCreate: x < 0 and box off +quad
Error in boxCreate: x < 0 and box off +quad
Error in boxCreate: x < 0 and box off +quad
Error in boxCreate: x < 0 and box off +quad
Error in boxCreate: x < 0 and box off +quad
Rendered page 241 to file /tmp/tmp.lswGVDuVeX/bih/bih.Siddhanta.exp0.tif
Error in boxCreate: x < 0 and box off +quad
Error in boxCreate: x < 0 and box off +quad
Error in boxCreate: x < 0 and box off +quad
Rendered page 245 to file /tmp/tmp.lswGVDuVeX/bih/bih.Mangal.exp0.tif
Error in boxCreate: x < 0 and box off +quad
Rendered page 247 to file /tmp/tmp.lswGVDuVeX/bih/bih.Sanskrit_2003.exp0.tif
Rendered page 242 to file /tmp/tmp.lswGVDuVeX/bih/bih.Siddhanta.exp0.tif
Rendered page 246 to file /tmp/tmp.lswGVDuVeX/bih/bih.Mangal.exp0.tif
Rendered page 248 to file /tmp/tmp.lswGVDuVeX/bih/bih.Sanskrit_2003.exp0.tif
Error in boxCreate: x < 0 and box off +quad
Rendered page 243 to file /tmp/tmp.lswGVDuVeX/bih/bih.Siddhanta.exp0.tif
Rendered page 247 to file /tmp/tmp.lswGVDuVeX/bih/bih.Mangal.exp0.tif
Rendered page 249 to file /tmp/tmp.lswGVDuVeX/bih/bih.Sanskrit_2003.exp0.tif

@Shreeshrii
Copy link
Collaborator Author

@amitdo
Copy link
Collaborator

amitdo commented Jan 3, 2017

Extracting font properties only

I'm not sure if the LSTM engine needs this step.

@Shreeshrii
Copy link
Collaborator Author

Shreeshrii commented Jan 3, 2017

I am using tesstrain.sh . The ngram file creation, which is used for font properties is done even before creation of images.

--linedata_only is the option used for creating the lstmf files.

training/tesstrain.sh --fonts_dir /home/shree/.fonts --lang bih  --linedata_only \
  --langdata_dir ../langdata --tessdata_dir ./tessdata \
  --output_dir ~/tesstutorial/bihnew

@amitdo
Copy link
Collaborator

amitdo commented Jan 3, 2017

I am using tesstrain.sh . The ngram file creation, which is used for font properties is done even before creation of images.

Yes, I know...

I think the LSTM engine does not need this info. If that's true, it should not activated in tesstrain.sh when training witn the --linedata_only option.

@Shreeshrii
Copy link
Collaborator Author

           --noextract_font_properties)
                EXTRACT_FONT_PROPERTIES=0 ;;

So, for LSTM training we should use both of these -

--linedata_only --noextract_font_properties

@amitdo
Copy link
Collaborator

amitdo commented Jan 4, 2017

Yes, probably... :-)

@theraysmith
Copy link
Contributor

Correct. Changing instructions now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants