Giter VIP home page Giter VIP logo

svhn-digit-detection's Introduction

SVHN-digit-detection

This project use Retina Net to do SVHN digit detection.

Dataset

SVHN is obtained from house numbers in Google Street View images. It contain 10 classes, 1 for each digit. Digit '1' has label 1, '9' has label 9 and '0' has label 10 instead of 0.



Enviornment

torch version 1.7.0

Installation

  1. Download dataset from official site http://ufldl.stanford.edu/housenumbers/
  2. Clone this repo
  3. Install Python packages
pip install pandas
pip install pycocotools
pip install opencv-python
pip install requests

Training

Run train.py by following command

python train.py --dataset csv --csv_train <path/to/train_annots.csv>  --csv_classes <path/to/train/class_list.csv>  --csv_val <path/to/val_annots.csv>

Visualize

pre-trained model is available at: https://drive.google.com/file/d/1-Szeyz9LA5X_-MvbuYriWovQPEYyrKVI/view?usp=sharing

To visualize image, use:

python inference.py --dataset csv --csv_classes <path/to/train/class_list.csv>  --csv_val <path/to/val_annots.csv> --model <path/to/model.pt>

Credits

  1. https://github.com/pavitrakumar78/Street-View-House-Numbers-SVHN-Detection-and-Classification-using-CNN/blob/master/train_digit_detection.py
  2. https://github.com/AlessandroSaviolo/RetinaNET-Object-Detector/tree/master/src
  3. https://github.com/yhenon/pytorch-retinanet

Example

svhn-digit-detection's People

Contributors

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