mittagessen / kraken

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

albumentations version conflict #648

Closed OrianeN closed 1 month ago

OrianeN commented 1 month ago

Hello,

I just tried to install kraken in order to use the training 'ketos' script, but faced some issues in the process:

  1. The albumentations dependency was not installed, so I installed it manually with pip install . (probably v1.4.17)
  2. When running 'ketos' again, I got a very frightening error ending with :

    ValidationError: 1 validation error for InitSchema alpha_affine Input should be None [type=none_required, input_value=0.25, input_type=float] For further information visit https://errors.pydantic.dev/2.9/v/none_required

  3. @PonteIneptique compared my dependencies versions to his and we noticed that his albumentations version was behind, so I downgraded it to v1.4.2 which solved the problem.

I've just found the installation option kraken[augment] in setup.cfg, yet albumentations is not associated with a version there, so maybe you could add it to avoid that other users get stuck because of this version conflict.

mittagessen commented 1 month ago

Thanks. They removed the alpha_affine argument because people are supposed to use the Affine transforms directly. I've pushed a fix factoring it out.