meijieru/crnn.pytorch
meijieru/crnn.pytorch has 2,492 GitHub stars and 657 forks. GitHot measured -1 stars in 24 hours and -3 in 7 days. Last checked 2026-11-09 18:54 UTC. Last push 2024-09-19.
Convolutional recurrent network in pytorch
Measured star growth
- in 24h
- -1
- in 7 days
- -3
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalConvolutional Recurrent Neural Network
This software implements the Convolutional Recurrent Neural Network (CRNN) in pytorch. Origin software could be found in crnn
Run demo
A demo program can be found in demo.py. Before running the demo, download a pretrained model
from Baidu Netdisk or Dropbox.
This pretrained model is converted from auther offered one by tool.
Put the downloaded model file crnn.pth into directory data/. Then launch the demo by:
python demo.py
The demo reads an example image and recognizes its text content.
Example image:

Expected output: loading pretrained model from ./data/crnn.pth a-----v--a-i-l-a-bb-l-ee-- => available
Dependence
- warp_ctc_pytorch
- lmdb
Train a new model
- Construct dataset following origin guide. If you want to train with variable length images (keep the origin ratio for example), please modify the
tool/create_dataset.pyand sort the image according to the text length. - Execute
python train.py --adadelta --trainRoot {train_path} --valRoot {val_path} --cuda. Exploretrain.pyfor details.
Cite
@article{shi2016end,
title={An end-to-end trainable neural network for image-based sequence recognition and its application to scene text recognition},
author={Shi, Baoguang and Bai, Xiang and Yao, Cong},
journal={IEEE transactions on pattern analysis and machine intelligence},
volume={39},
number={11},
pages={2298--2304},
year={2016},
publisher={IEEE}
}
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,274 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,024 stars