Skip to content

OCR model made of using LAS's speller and image encoder.

Notifications You must be signed in to change notification settings

tetrapod0/LAS-OCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAS-OCR

OCR model made of using LAS's speller and image encoder.


Example

from model import InferenceModel

model_path = './models/LAS_number_enclstm3_declstm3_3440.pt'
inference_model = InferenceModel(model_path)
import matplotlib.pyplot as plt
import cv2

img = cv2.imread(your_img_path)
s, _ = inference_model(img, is_bgr=True, use_beam=True)
print(s)

plt.imshow(img[...,::-1])
51.55

download


Preview

download

Loss Graph

download


Visual Attention Score

image


Reference

Listen-Attend-and-Spell-Pytorch

Chan, William, et al. “Listen, attend and spell.” arXiv preprint arXiv:1508.01211 (2015).APA

About

OCR model made of using LAS's speller and image encoder.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published