tesstrain icon indicating copy to clipboard operation
tesstrain copied to clipboard

Trying to readme but I get: No box data found in 'data/foo-ground-truth/fontane_irrungen_1888_0258_008.box'....

Open manuelarte opened this issue 1 year ago • 2 comments

Hi,

I followed the tutorial, I extracted the content of ocrd-testset.zip in ./data/foo-ground-truth, but when I run:

make training

I get the following output:

(python) manuelarte@maclaptop tesstrain % gmake training
You are using make version: 4.4.1
tesseract "data/foo-ground-truth/fontane_irrungen_1888_0258_008.tif" data/foo-ground-truth/fontane_irrungen_1888_0258_008 --psm 13 lstm.train
No box data found in 'data/foo-ground-truth/fontane_irrungen_1888_0258_008.box'.
Failed to read boxes from data/foo-ground-truth/fontane_irrungen_1888_0258_008.tif
Error during processing.
gmake: *** [Makefile:260: data/foo-ground-truth/fontane_irrungen_1888_0258_008.lstmf] Error 1

I am running on Mac

manuelarte avatar Aug 27 '24 13:08 manuelarte

Usually this is when issue reporter does not write whole story ;-) (previous training was stopped, or crashed, or there was missing some dependency and box file was not created correctly...)

Did you check data/foo-ground-truth/fontane_irrungen_1888_0258_008.box? Is there any box information? If not just delete file and run training again...

zdenop avatar Aug 27 '24 14:08 zdenop

@zdenop ... and you're right. I had an issue with one python dependency. I fixed it, removed the box file, retry, and now it works.

Thanks btw!

manuelarte avatar Aug 27 '24 15:08 manuelarte

@manuelarte I'm having the same exact error, what python dependency was missing on your side?

Shebuka avatar Mar 05 '25 17:03 Shebuka

@manuelarte I'm having the same exact error, what python dependency was missing on your side?

@Shebuka sorry... I can't remember.

manuelarte avatar Mar 05 '25 18:03 manuelarte

@manuelarte no problems, I've looked in the makefile code and tried to manually run generate_line_box.py aaaaand it worked... So I tried to run gmake training again and now it didn't give any errors... go figure... maybe some folder permissions 🤷‍♂️

Shebuka avatar Mar 05 '25 20:03 Shebuka

@manuelarte no problems, I've looked in the makefile code and tried to manually run generate_line_box.py aaaaand it worked... So I tried to run gmake training again and now it didn't give any errors... go figure... maybe some folder permissions 🤷‍♂️

Nice! Good luck!

manuelarte avatar Mar 05 '25 20:03 manuelarte