Skip to content

xijunjun/crpn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corner-based Region Proposal Network

CRPN is a two-stage detection framework for multi-oriented scene text. The code is modified from py-faster-rcnn.

Requirements

  1. Clone the CRPN repository

    git clone https://github.com/xhzdeng/crpn.git
    
  2. Build Caffe and pycaffe (see: Caffe installation instructions)

    cd caffe-fast-rcnn
    make -j8 && make pycaffe
    
  3. Build the Cython modules

    cd $CRPN_ROOT/lib
    make
    
  4. Prepare your own training data. It should have the basic structure followed PASCAL VOC dataset

    Create symlinks for YOUR dataset
    cd $CRPN_ROOT/data
    ln -s [dataset_path] VOCdevkit
    
  5. Download pre-trained ImageNet VGG-16 models

    You can find it at [Caffe Model Zoo](https://github.com/BVLC/caffe/wiki/Model-Zoo)
    
  6. Train with YOUR dataset

    cd $CRPN_ROOT
    ./experiments/scripts/train.sh [NET] [MODEL] [DATASET] [ITER_NUM]
    # NET is the network arch to use, only {vgg16} in this implemention
    # MODEL is the pre-trained model you want to use to initial your weights
    # DATASET points to your dataset
    # IETR_NUM 
    
  7. Test with YOUR dataset

    cd $CRPN_ROOT
    ./experiments/scripts/test.sh [NET] [MODEL] [DATASET]
    # NET is the network arch to use, only {vgg16} in this implemention
    # MODEL is the resulting model you trained before
    # DATASET points to your dataset
    

    Test outputs are saved under:

    output/<experiment directory>/<dataset name>/<network snapshot name>/
    

About

Corner-based Region Proposal Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 72.5%
  • Python 16.1%
  • Cuda 6.3%
  • CMake 2.6%
  • MATLAB 0.8%
  • Shell 0.6%
  • Other 1.1%