Giter Site home page Giter Site logo

xrosliang / vehicle-speed-estimation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shafu0x/vehicle-speed-estimation

0.0 1.0 0.0 102.92 MB

Vehicle Speed Estimation from Video using Deep Learning and Optical Flow in PyTorch.

Jupyter Notebook 100.00%

vehicle-speed-estimation's Introduction

vehicle-speed-estimation

If you want to know more about this project checkout my medium post.

video

Requirements

pip3 install -r requirements.txt

How to use

Pre-trained model

You can simply use the model that I trained before. It is under models. Use the inference.ipynb to load the model and run an inference.

Train yourself

You can train the network (EfficientNet) to predict the speed of a vehicle using optical flow. If you want to train yourself, you will need to create the optical flow images first and save them as .npy files in a directory of your choice. You can do this here: SharifElfouly/opical-flow-estimation-with-RAFT.

Results

If you are interested on how well the model performs, watch this validation video on YouTube.

Another approach

You can also just stack 2 frames together so you have 6 channels for each input and feed that to a conv net. This is what I did in train_cnn_2frames.ipynb.

vehicle-speed-estimation's People

Contributors

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