Giter VIP home page Giter VIP logo

deepracer-viz's Introduction

AWS DeepRacer Video Visualizations

Repository containing tools to visualize AWS DeepRacer (training) runs. Currently only a visualization based on GradCam is supported.

Setup

Requirements

Installation

First prepare the Python enviroment using poetry install. Available tools can be found in the tools folder. Before running a tool make sure the virtual environment is activated using poetry shell.

Downloading your model

You can obtain your model graph in the form of a .pb file either from S3 or from the DeepRacer console.

  • S3 -> Go to the S3 folder in which the training run is stored. Here you can download the model files per checkpoint.
  • Console -> Select your training run and choose Download model. Inside the obtained .tar.gz you can find your model.pb file.

Visualization tools

Kinesis Downloader

Can be used to view and store the live feed of a training job. This is the same feed that is shown in the AWS DeepRacer console.

python download_kinesis.py <Kinesis Video Stream Name> -o <output_file.mp4>

GradCam

Overlays a Gradient-weighted Class Activation Mapping (Grad-CAM, Selvaraju et al.) over an input video for a given action. It takes as input the action number of the action in model_metadata.json or the DeepRacer console for which it then computes the activation map using the model stored in model.pb.

GradCam example

python gradcam.py <input_file.mp4> -m <model.pb file path> -a <action index> -o <output_file.mp4>

deepracer-viz's People

Contributors

jochem725 avatar

Stargazers

João Victor Carvalho avatar Levi Gomes avatar Twann Atkins avatar  avatar Tarun Sudhams avatar Dan Jarvis avatar Xu Ren avatar −− −−− ·−· ··· · avatar Matus Harvan avatar jarrett jordaan avatar Kim, WoogLae (김욱래) avatar Yousef avatar Ronald avatar Amin Mahrami avatar

Watchers

Matus Harvan 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.