Connectionist Text Proposal Network in MXNet
September 29, 2018 · View on GitHub
Introduction
CTPN is a nice scene text detection method.
Training
- Execute script init.sh(init.bat on Windows) to initialize project.
- Download pretrained model from here into
modelfolder. - Download dataset from google drive or baidu yun. This dataset is already prepared by @eragonruan to fit CTPN.
- Unzip the dataset downloaded to
'VOCdevkit'folder, and set bothdefault.root_pathanddefault.dataset_pathinrcnn/config.pyto'<somewhere>/VOCdevkit/VOC2007'. You can also change other hyperparams inrcnn/config.py. - Run
python train_ctpn.pyto train. Runpython train_ctpn.py --gpus '0' --rpn_lr 0.01 --no_flip 0to train model on gpu 0 with learning rate 0.01 and with flip data augmentation.
Testing
Use python demo_ctpn.py --image "<your_image_path>" --prefix model/rpn1 --epoch 8 to test.
Our results
NOTICE: all the photos used below are collected from the internet. If it affects you, please contact me to delete them.




Requirements: Hardware
Any NVIDIA GPUs with at least 2GB memory should be OK.
References
TODO
- Custom dataset preparation tutorial
- Windows support
- Deploying network and c++ inference support