Code Monkey home page Code Monkey logo

lprnet-keras's Introduction

LPRnet-keras

A keras implementation of the network proposed in https://arxiv.org/abs/1806.10447 LPRnet is a fully end to end licence plate recognition network with the following priorities:

  1. Parameter efficiency
  2. Speed

This repo contains all the code necessary to train LPRnet on a synthetic dataset

Notes

  1. Utilizes separable convolutional layers as opposed to the normal convolutional layers used in the paper.
  2. Training data is generated at train time.
  3. Dataset generation adopted from https://github.com/bluesy7585/tensorflow_LPRnet
  4. Dataset augmentation adopted from the proposed system in https://arxiv.org/abs/2108.06949, code available at https://github.com/roatienza/straug

Training

To train LPRnet, run the following script to train with 10000 epochs.

python train.py 10000

Demos

This script runs a quick demo of LPRnet on a video using MobileNetV2SSD-FPNLite as the licence plate detector.

python demo/sync.py

Dataset generation

A keras generator is used to generate synthetic images at train time. Fonts are located in \fonts. A sample set of synthetic plates is shown below.

plates

Model architecture

The model architecture is implemented with the following modifications:

  1. Depthwise separable convolutional layers are used as a drop in replacement for the regular convolutional layers.
  2. Global context is used concatenating each small basic block as suggested in the paper.

A diagram of the architecture is shown below. Architecture

Looking forward

  1. Improve synthetic data generation.
  2. Make implementation compatible with google's coral TPU compiler. Currently only 32/52 ops are mapped to the TPU (no depthwise layers)
  3. Test training without synthetic data with annotated images of licence plates.

lprnet-keras's People

Contributors

clsandoval avatar

Stargazers

 avatar Robin van Emden avatar M Hazwan avatar

Watchers

Trunks avatar Kostas Georgiou avatar  avatar

lprnet-keras's Issues

Requirements

Hi, Thank you for creating this great repository!
But what is the Requirements, i train model but error

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.