gasparian / CRNN-OCR-lite

Lightweight CRNN for OCR (including handwritten text) with depthwise separable convolutions and spatial transformer module [keras+tf]
148 stars 30 forks source link

predict.py run time error #1

Closed kienchen closed 5 years ago

kienchen commented 5 years ago

run predict.py without option of --validate python3 predict.py --G 0 --model_path /data/data/CRNN_OCR_keras/data/OCR_IAM_ver1 \ --image_path /data/data/CRNN_OCR_keras/data/IAM_processed \ --num_instances 128

has three errors 1) not found: set_offset_monochrome 2) not found: padd 3) img = cv2.cvtColor(img.astype(np.uint8), cv2.COLOR_BGR2GRAY)

AttributeError: 'NoneType' object has no attribute 'astype'

gasparian commented 5 years ago

Hi! I'm making refactoring right now, so I think it will be a small description and some example results in ~ 3-5 days. So it all will work soon ;)

kienchen commented 5 years ago

Many thanks for your reply!

Sent from my iPad

On Feb 12, 2019, at 10:52 AM, Andrey Gasparyan notifications@github.com wrote:

Hi! I'm making refactoring right now, so I think it will be a small description and some example results in ~ 5 days. So it all will work soon ;)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.