Code Monkey home page Code Monkey logo

real-time-text-detection's Introduction

Real-time-Text-Detection

PyTorch re-implementation of Real-time Scene Text Detection with Differentiable Binarization

contour

Difference between thesis and this implementation

  1. Use dice loss instead of BCE(binary cross-entropy) loss.

  2. Use normal convolution rather than deformable convolution in the backbone network.

  3. The architecture of the backbone network is a simple FPN.

  4. Have not implement OHEM.

  5. The ground truth of the threshold map is constant 1 rather than 'the distance to the closest segment'.

Introduction

thanks to these project:

The features are summarized blow:

  • Use resnet18/resnet50/shufflenetV2 as backbone.

Contents

  1. Installation
  2. Download
  3. Train
  4. Predict
  5. Eval
  6. Demo

Installation

  1. pytorch 1.1.0

Download

  1. ShuffleNet_V2 Models trained on ICDAR 2013+2015 (training set) https://pan.baidu.com/s/1Um0wzbTFjJC0jdJ703GR7Q

Train

  1. modify genText.py to generate txt list file for training/testing data

  2. modify config.json

  3. run

python train.py

Predict

  1. run
python predict.py

Eval

run

python eval.py

Examples

contour

bbox

Todo

  • MobileNet backbone

  • Deformable convolution

  • tensorboard support

  • FPN --> Architecture in the thesis

  • Dice Loss --> BCE Loss

  • threshold map gt use 1 --> threshold map gt use distance (Use 1 will accelerate the label generation)

  • OHEM

  • OpenCV_DNN inference API for CPU machine

  • Caffe version (for deploying with MNN/NCNN)

  • ICDAR13 / ICDAR15 / CTW1500 / MLT2017 / Total-Text

real-time-text-detection's People

Contributors

surfzjy avatar

Watchers

paper2code - bot 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.