robertknight / ocrs-models

PyTorch models for the ocrs OCR engine
45 stars 8 forks source link

Fix char error rate calculation #14

Closed robertknight closed 7 months ago

robertknight commented 7 months ago

This fixes an issue with calculating the character error rate and generating model previews during recognition model training, due to mis-handling of padding in the inputs. The reported rate was higher than it should have been. See commits for details.

Also fix a warning about use of deprecated verbose flag for PyTorch schedulers.