Code Monkey home page Code Monkey logo

dbnet's Introduction

Real-time Scene Text Detection with Differentiable Binarization

note: some code is inherited from MhLiao/DB

update

2020-12-16: 融合Deeplabv3+中的空洞卷积模型,在使用atros类型的backbone时,需要注意配合SPP的neck类型使用。

Requirements

  • pytorch 1.2+
  • torchvision 0.4+
  • GTX 1080+

Data Preparation

Data: put img and gt folder into datasets folder

run make_list.py will create train.txt and test.txt in dataset folder

Training data: text train.txt in the following format, use '\t' as a separator

./datasets/img/001.jpg	./datasets/gt/001.txt

Validation data: text test.txt in the following format, use '\t' as a separator

./datasets/img/001.jpg	./datasets/gt/001.txt
  • Store images in the img folder
  • Store groundtruth in the gt folder

The groundtruth can be .txt files, with the following format:

x1, y1, x2, y2, x3, y3, x4, y4, annotation

Train

  1. Set the parameters in config.py , it contains all config context.
python train.py

Test

eval.py is used to test model on test dataset

python eval.py

Predict

predict.py Set parameters in local file.

python predict.py

The project is still under development.

demo

If this repository helps you,please star it. Thanks.

dbnet's People

Contributors

qq751220449 avatar

Stargazers

 avatar  avatar  avatar ppzze avatar  avatar  avatar Henry LOL avatar francis avatar superwbb007 avatar YuhuaCao avatar  avatar  avatar

Watchers

 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.