Coder Social home page Coder Social logo

text-recognizer's Introduction

Text-Recognizer

Getting Started

Dependency

  • requirements : numpy, pandas, matplotlib, pytorch, opencv-python, torchvision, albumentations, and Levenshtein
pip3 install numpy pandas tqdm matplotlib opencv-python torch torchvision albumentations Levenshtein

Download GNHK dataset for training from here

Folder structure

The structure of folder as below.

Text-Recognizer
├── README.md
├── dataset.py
├── model.py
├── train.py
├── utils.py
└── gnhk
    ├── test
    └── train

Check Data Pipeline

 python3 dataset.py --data='gnhk/train/' --transform=False 

Arguments

  • --data: folder path to gnhk dataset.
  • --transform: transformation. (default=False)

Training

 python3 train.py --train_data='gnhk/train/' --valid_data='gnhk/test/' \
 --train_trans=True --valid_trans=True \
 --batch_size=16 --n_epochs=5 --grad_clip=0.5 --workers=4

Arguments

  • --train_data: folder path to gnhk training dataset.
  • --valid_data: folder path to gnhk validation dataset.
  • --train_trans: transformation in training. (default=True)
  • --valid_trans: transformation in validation. (default=True)
  • --batch_size: input batch size. (default=16)
  • --n_epochs: number of epoches. (default=5)
  • --grad_clip: gradient clipping value. (default=0.5)
  • --workers: number of data loading workers. (default=4)

text-recognizer's People

Contributors

djeong20 avatar sseo1124 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.