JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.34k stars 3.15k forks source link

How to create the files for running a custom model? #760

Open sameearif88 opened 2 years ago

sameearif88 commented 2 years ago

The EasyOCR ReadME states that the following three files are required to use a custom model: custom_model.pth, custom_model.yaml, and custom_model.py.

How are we supposed to create the custom_model.yaml and custom_model.py files?

Are we supposed to copy functions / classes from modules.py? If so, TPS and Attention are not present in that file, so where can we find these?

Thank you

s39674 commented 2 years ago

Hi @sameearif88 ! Did you have a look at this note: https://github.com/JaidedAI/EasyOCR/blob/master/custom_model.md ?

KPLinux commented 3 months ago

Hi @sameearif88 ! Did you have a look at this note: https://github.com/JaidedAI/EasyOCR/blob/master/custom_model.md ?

Hi, I'm also new to this, but in the note it only gives an example zip folder and not actual instructions to create the files (unless I am missing something)