A custom PyTorch CRNN trained with Connectionist Temporal Classification (CTC) for English handwritten text-line recognition.
Sj122702/IAM-line
model.py: CRNN architecturemodel.pth: trained model state dictionaryvocab.json: character vocabulary and CTC blank IDconfig.json: architecture and evaluation configurationA cropped image containing one handwritten English text line.
The model expects a grayscale image resized to 32 pixels high, with aspect ratio preserved and pixel values normalized to [-1, 1].
Instantiate CRNN from model.py, load model.pth,
preprocess the image as described above, and decode the output
using CTC greedy decoding or beam search.
This is a custom baseline. Recognition accuracy depends on handwriting, image quality, preprocessing, and the character vocabulary. It is not a full-page text detector and has not been established as suitable for languages or scripts outside its training data.
Evaluation metrics are recorded in config.json.