mittagessen / kraken

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

Update requirements for torchmetrics and related import statement #542

Closed stweil closed 1 year ago

stweil commented 1 year ago

A new installation of kraken gets torchmetrics 1.1.1 which wants a different import statement for CharErrorRate and WordErrorRate:

FutureWarning: Importing `CharErrorRate` from `torchmetrics` was deprecated and will be removed in 2.0. Import `CharErrorRate` from `torchmetrics.text` instead.
FutureWarning: Importing `WordErrorRate` from `torchmetrics` was deprecated and will be removed in 2.0. Import `WordErrorRate` from `torchmetrics.text` instead.

Update the import statement and require at least torchmetrics 1.1.0 which introduced the modified import.

stweil commented 1 year ago

I noticed the deprecation warnings in the server protocol of our eScriptorium instance.

mittagessen commented 1 year ago

Thanks.