Giter Site home page Giter Site logo

motion-prediction's Introduction

Motion-Prediction

A motion prediction model trained on the Lyft's Prediction Dataset capable of predicting the motion of all agents visible to the ego vehicle at a given point in time(A frame).

Model

The base model is a GoogLeNet model that is not pretrained. It is customized with multiple Fully Connected convolution layers at the output to meet the requirements to plot the predicted trajectories of the agents. The input layer is also customized to match the output size of the rasterizer.

Result

imggif

Setup

  1. Download the Lyft's Prediction Dataset and the example codes from the Lyft's website
  2. Create a new virtual python environment using conda or python env. Note: (Only Part 1 of training dataset was used to train the mote due to RAM limitations)
  3. Download the Lyft Python SDK in the new environment.
  4. Reorganize the folders and files downloaded as mentioned below (Refer Directory Structure)
  5. The directories titled trained_models is createded to save and load trained prediction models.
  6. Paste the files in the /src sub directory of this repository inside the examples directory.
  7. Navigate to /l5kit-1.5.0/examples/agent_motion_precition and create a directory called output to store the results of the model.
  8. Change parameters in the config file as fit for your system specifications.
  9. Change the PATH in the prediction python/jupyter notebook scripts,
os.environ["L5KIT_DATA_FOLDER"] = "/home/akhil/lyft_predict/l5kit-1.5.0"
...
cfg = load_config_data("./agent_motion_config.yaml")

System Specifications

  • 16 GB RAM
  • Nvidia RTX 3070 8 GB VRAM
  • Ubuntu 20.04 LTS
  • 200 GB SSD

NOTE:

These are the specifications of the system this model was trained on and is not the minimum specification

Requirements

  • python 3.9
  • L5kit-1.5.0
  • torch
  • torchvision
  • torchaudio
  • openCV
  • protobuf 3.20
  • jupyter
  • CUDA (optional- only for GPU)

Directory Structure

Motion_Prediction(any_name)
├── aerial_map
│   ├── aerial_map.png
│   ├── feedback.txt
│   ├── LICENSE
│   └── nearmap_images
├── l5kit-1.5.0
│   ├── dataset_metadata
│   ├── docs
│   ├── examples
│   ├── l5kit
│   ├── meta.json
│   ├── README.md
│   ├── scenes
│   ├── scripts
│   ├── semantic_map
│   └── trained_models
├── sample
│   ├── feedback.txt
│   ├── LICENSE
│   └── sample.zarr
└── semantic_map
    ├── feedback.txt
    ├── LICENSE
    ├── meta.json
    └── semantic_map.pb

TODO

  • Update the model section with diagram
  • Train new model to try and reduce errors

motion-prediction's People

Contributors

akhilrajan-v 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.