EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

Error while training detection (craft)

Open akashlp27 opened this issue 2 years ago • 0 comments

Hi, i am trying to train craft detection model, but ended in the below mentioned error, after completion of 1000 ittertations any suggestions would help a lot, thanks.

c:\users\user\pycharmprojects\easy_ocr_new\easyocr\trainer\craft\data\pseudo_label\make_charbox.py(36)crop_image_by_bbox()
     35 
---> 36         one_char_ratio = min(h, w) / (max(h, w) / len(word))
     37 
ipdb> one_char_ratio = min(h, w) / (max(h, w) / len(word))
*** ZeroDivisionError: float division by zero

akashlp27 avatar Jun 08 '22 11:06 akashlp27