Giter Club home page Giter Club logo

db_text_minimal's Introduction

A Pytorch implementation of DB-Text paper

Make awesome things that matter.

Command

Train model

  • Modify some configuration in config.yaml
make train

Test model

make test-all

Evaluate model

  • For evaluation metric, please refer to MegReader repository
# iou-based Pascal
make ioueval

# overlap-based DetEval
make deteval

History (on TotalText dataset)

Train data

Test data

Test dataset (TotalText)

Heatmap Polygon Rotated rectangle

Text-line detection (the model trained on CTW1500 dataset)

Image origin Text-line detected

Full pipeline

Metric evaluation (DetEval - P/R/HMean)

# for TotalText dataset
make deteval
Method image size init lr b-thresh p-thresh unclip ratio Precision Recall F-measure
TotalText-resnet18-fcn (word-level) 640 0.005 0.25 0.50 1.50 0.70 0.64 0.67
CTW1500-resnet18-fcn (line-level) 640 0.005 0.25 0.50 1.50 0.83 0.66 0.74

ToDo

  • Support datasets
  • Pytorch-lightning
  • Model serving with Torchserve
  • Metric callback (P/R/F1)
  • IoU-based metric (P/R/F1 - Pascal)
  • Overlap-based metric (P/R/F1 - DetEval)
  • Model quantization
  • Model pruning
  • Docker / docker-compose
  • ONNX, TensorRT
  • Text recognition model

Reference

I got a lot of code from DBNet.pytorch, thanks to @WenmuZhou

db_text_minimal's People

Contributors

huyhoang17 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.