Open ShehneelAhmedKhan opened 7 months ago
I'm having the same problem - @ShehneelAhmedKhan were you ever able to fix it?
Same problem, anyone ???
I think my major issue is knowing which model to define in the ~/.EasyOCR/user_network/ if I simply retrained the ['en'] model.
I was able to solve it by using the python file mentioned in this tutorial for saving / loading the model: https://alimustoofaa.medium.com/easyocr-training-custom-dataset-8fc31cfec1fe. Essentially, the problem was occurring because I was using code I copied from the model.py file for saving / loading, and that takes num_classes through the opt
AttrDict. When loading the model, you need the format to have num_classes directly as a parameter.
Excellent, thank you for your help @donjuanpond we are all up and running now !
I have trained my custom model following this repo and now when I am trying to run this, I get the following error.