Bug with the LSTMCell's inside the decoder part of the SAR_Resnet31 model in both backends (TF and PT) #1411
Labels
critical
High priority
framework: pytorch
Related to PyTorch backend
framework: tensorflow
Related to TensorFlow backend
module: models
Related to doctr.models
topic: text recognition
Related to the task of text recognition
type: bug
Something isn't working
Milestone
Bug description
This bug report is in relation to QA Discussion Post 1410
A sar_resnet31 model was trained using train_pytorch.py on a custom dataset. In training validation, models reached low 90% in exact and partial match. By using the same scripts --test_only flag the models achieved 89% partial and exact match. However, when using the model for inference in multiple different ways (see code snippet section below), the model was unable to produce any complete matches.
I posted this topic in QA Discussion Post 1410, and was recommended by @felixT2K that I create a bug report. @felixT2K suspected that there was a bug with the LSTMCell's inside the decoder part of the model in both backends (TF and PT).
Code snippet to reproduce the bug
Using --test_only flag for train_pytorch.py
Output
Validation loss: 0.0948886 (Exact: 92.81% | Partial: 92.81%)
Using mindee doc recommended method (see original QA Post for more detail):
Attempting to recreate the way train_pytorch.py load and uses the model (see original QA Post for more detail):
Error traceback
No specific error, just unexpected behavior from model implementations.
Environment
Deep Learning backend
The text was updated successfully, but these errors were encountered: