Giter Site home page Giter Site logo

yurawoo / p_uah_prevention Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dlb97/p_uah_prevention

0.0 0.0 0.0 617 KB

Preprocessing for the UAH Prevention Dataset (https://prevention-dataset.uah.es). The final goal is to have 20 Frame individual videos for each object detected

Shell 1.22% Python 98.78%

p_uah_prevention's Introduction

P_UAH_PREVENTION

Preprocessing for the UAH Prevention Dataset (https://prevention-dataset.uah.es). The final goal is to have short individual videos for each object detected that can be later feed to a ML model to predict Lane Changes. The repo is composed of the following files:

  • data_join.py: File that joins the detections_tracked.txt , the lane_changes.txt and the video for one recording. The outputs that will be produced after running the file are the following :

    1 Smaller videos of a certain number of frames for each object detected. So if we have an object (let's say car with id 6) that appears in a total of 200 frames, we will make 10 shorter videos of 20 frames each (Configurable parameters are availabe to specify the length). The videos in mp4 format can be stored locally or in AWS S3.

    2 A 5D numpy array that contain all the individual videos [N 20 224 224 3] + labels for the videos that contain a future LC (also as an array and taking into account the obs horizon mentioned in the paper)

    3 A CSV file with two columns (Path, Label). The idea is to use it as a dataloader to not have all the videos produced in 1 loaded in memory.

  • download_files: Creates a directory and download the files (txt data about detections and lane changes + video). Example to use it :

    • sh download_files.sh <folder_to_be_created> <record_number>
    • sh download_files.sh v1 1 1 --> Will download the data for driveset 1 record 1
  • preprocess.sh: After the data to be processed has been downloaded this script automates calling the data_join.py. Include the folders you want to process in the initial for loop and define the paths an variables to use.

p_uah_prevention's People

Contributors

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