tesstrain
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'....
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
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 ... 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 I'm having the same exact error, what python dependency was missing on your side?
@manuelarte I'm having the same exact error, what python dependency was missing on your side?
@Shebuka sorry... I can't remember.
@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 🤷♂️
@manuelarte no problems, I've looked in the makefile code and tried to manually run
generate_line_box.pyaaaaand it worked... So I tried to rungmake trainingagain and now it didn't give any errors... go figure... maybe some folder permissions 🤷♂️
Nice! Good luck!