• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    Jupyter Notebook
  • Created about 4 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

evm-from-scratch-book

The EVM from scratch book
Jupyter Notebook
76
star
2

huff-stacker

The goal of this project is to automatically generate stack comments for huff macros
Rust
50
star
3

evm-from-scratch-python

EVM in python from scratch because why not
Python
10
star
4

evm-from-scratch

Building the EVM from Scratch
Jupyter Notebook
8
star
5

blockchain-from-scratch

Create a blockchain in pure python and basic cryptographic primitives.
Jupyter Notebook
6
star
6

huff-fmt

Rust
5
star
7

flappy-bird-neuroevolution-with-neat

My re-implementation of the NEAT algorithm. I use this evolutionary Reinforcement Learning approach to play flappy bird. It is certainly better than me...
Python
5
star
8

easy-model-zoo

Running SOTA models is too hard and I agree! I want to change that with easy-model-zoo, a collection of SOTA models that are pip installable. Run them on your CPU or GPU.
Python
4
star
9

inverse-neural-network

A simple feed-forward network trained on MNIST and its inverse network.
Python
3
star
10

tic-tac-toe-reinforcement-learning

An agent who learns the game of tic tac toe using reinforcement learning
Python
3
star
11

halstead-bytecode-complexity

Rust
3
star
12

from-scratch

Concepts explained from scratch.
Jupyter Notebook
2
star
13

deep-autoencoder-with-keras

A very simple Autoencoder in Keras to encode/decode digits from the MNIST dataset. How good can an Autoencoder compress images?
Python
2
star
14

Contracts

Repository of published TNS Solidity contracts
Solidity
1
star
15

mnist-gan-with-keras

A generative adverserial neural network to create MNIST like images.
Python
1
star
16

contract-vis

Visualize smart contracts.
Python
1
star
17

robosaver-frontend

Solidity
1
star