Giter Club home page Giter Club logo

ctpn_torch's Introduction

1.ctpn-pytorch

my blog:https://blog.csdn.net/fanzonghao/article/details/106302632

2.setup

​ nms and bbox utils are written in cython, you have to build the library first.
​ --cd utils/bbox
​ --sh make.sh
​ It will generate a nms.so and a bbox.so in current folder.

3.inference

​ --change you own model_path , dir_path, save_path and save_path_json in inference.py
​ python inference.py

4.labelme json to txt:

​ --change you own path in json_txt.py
​ python json_txt.py

5.train

​ follow icdar15 dataset format, x1,y1,x2,y2,x3,y3,x4,y4,label,(x1,y1) is left top,(x2,y2) is right top.

image
1.jpg
1.txt   

​ -- Augmentation include color trans, Expand,
​ -- change you own model_path, dataset_path in train_v2.py

​ python train_v2.py

6.reference

  1. https://github.com/eragonruan/text-detection-ctpn
  2. https://github.com/BADBADBADBOY/pytorch.ctpn

ctpn_torch's People

Contributors

zonghaofan avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  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.