Code Monkey home page Code Monkey logo

ctpn.mxnet's Introduction

Connectionist Text Proposal Network in MXNet

Introduction

CTPN is a nice scene text detection method.

中文文档

Training

  1. Execute script init.sh(init.bat on Windows) to initialize project.
  2. Download pretrained model from here into model folder.
  3. Download dataset from google drive or baidu yun. This dataset is already prepared by @eragonruan to fit CTPN.
  4. Unzip the dataset downloaded to 'VOCdevkit' folder, and set both default.root_path and default.dataset_path in rcnn/config.py to '<somewhere>/VOCdevkit/VOC2007'. You can also change other hyperparams in rcnn/config.py.
  5. Run python train_ctpn.py to train. Run python train_ctpn.py --gpus '0' --rpn_lr 0.01 --no_flip 0 to 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

  1. https://github.com/tianzhi0549/CTPN
  2. https://github.com/eragonruan/text-detection-ctpn

TODO

  • Custom dataset preparation tutorial
  • Windows support
  • Deploying network and c++ inference support

ctpn.mxnet's People

Contributors

chinakook avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.