CTPN.mxnet
Connectionist Text Proposal Network in MXNet
Install / Use
/learn @chinakook/CTPN.mxnetREADME
Connectionist Text Proposal Network in MXNet
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.
<img src="/results/demo.jpg" width=320 height=240 /><img src="/results/demo2.jpg" width=320 height=240 />
<img src="/results/demo3.jpg" width=320 height=240 /><img src="/results/demo4.jpg" width=320 height=240 />
<img src="/results/demo5.jpg" width=320 height=240 />
<img src="/results/demo6.jpg" width=320 height=480 />
<img src="/results/demo7.jpg" width=480 height=320/>
<img src="/results/demo8.jpg" width=320 height=480/><img src="/results/demo9.jpg" width=320 height=480/>
<img src="/results/demo10.jpg" />
Requirements: Hardware
Any NVIDIA GPUs with at least 2GB memory should be OK.
References
- https://github.com/tianzhi0549/CTPN
- https://github.com/eragonruan/text-detection-ctpn
TODO
- [ ] Custom dataset preparation tutorial
- [x] Windows support
- [ ] Deploying network and c++ inference support
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.6kCommit, push, and open a PR
