mittagessen / kraken

OCR engine for all the languages
http://kraken.re
Apache License 2.0
751 stars 131 forks source link

UnpicklingError when running ketos rotrain #548

Closed Svetlana-Yatsyk closed 1 year ago

Svetlana-Yatsyk commented 1 year ago

Hello, first and foremost, thank you for this brunch !

I am trying to run ketos rotrain, but I get UnpicklingError: invalid load key, '<'. Could you please help me understand why it's happening? My ground truth is in PAGE.

python version: 3.9.18 kraken version: 4.3.10.dev108

Here is my Colab, if needed.

mittagessen commented 1 year ago

On 23/10/17 02:58AM, Svetlana Yatsyk wrote:

Hello, first and foremost, thank you for this brunch !

I am trying to run ketos rotrain, but I get UnpicklingError: invalid load key, '<'. Could you please help me understand why it's happening? My ground truth is in PAGE.

You're trying to continue training using one of the XML files as a base model. Remove the -i and it should work. Also you can leave the batch size at the original value of 15000. The model is really small and so are its input data so it can be trained with quite substantial batches.

Svetlana-Yatsyk commented 1 year ago

It works indeed! Thanks a lot.