Skip to main content

Deepracer Utilities - Analyzing Your DeepRacer Model

This is a set of utilities that will take your DeepRacer experience to the next level by allowing you to analyze your model, step by step, episode by episode. Only through analyzing what your model does will you be able to write the right reward function, choose the right action space and to tune the hyperparameters!

Requirements

  • Python 3.10 or later (Ubuntu 22.04+)
  • See pyproject.toml for the full dependency list.

Installation

Install the latest release from PyPI:

pip install deepracer-utils

For the optional model visualization features (requires TensorFlow and OpenCV):

pip install "deepracer-utils[visualization]"

To set up a development environment from a local clone:

pip install -e ".[dev,test]"

About the Utilities

The best reference on how to use the utilities can be found in the deepracer-analysis Jupyter notebooks.

An overview of the different modules provided, and the key classes involved:

Module Class Description
deepracer.logs DeepRacerLog Points to a DeepRacer model folder (local or S3) and reads simulation trace and robomaker log files.
deepracer.logs AnalysisUtils Processes raw log input and summarizes by episode.
deepracer.logs PlottingUtils Visualises the track and plots each step in an episode.
deepracer.logs TrainingMetrics Reads Metrics data and provides data similar to the training graph in the Console.
deepracer.tracks TrackIO Processes track routes (.npy files) and displays waypoints graphically.
deepracer.model n/a Methods to run inference on individual images and to perform visual analysis (requires visualization extra).

Other information

License

This project retains the license of the aws-deepracer-workshops project which has been forked for the initial Community contributions. Our understanding is that it is a license more permissive than the MIT license and allows for removing of the copyright headers. We have decided to preserve the headers and only add copyright notice for the Community.

Standards and good practices, contributing

While doing our best to make deepracer-utils an outcome of best practices and standards, we are using what we learn, as we learn. If you see a solution that would be better to apply, if you see something that is a risk, do raise it with the Community. Thank you.

We are open to merge requests. Please open an issue first to agree on the outcomes of your work.

Contact

You can contact Tomasz Ptak through the Community Slack: http://join.deepracing.io

Metadata

Release files for deepracer-utils 1.5.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepracer-utils 1.5.6
File Size Uploaded
deepracer_utils-1.5.6.tar.gz 75.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepracer-utils 1.5.6
File Interpreter ABI Platform
deepracer_utils-1.5.6-py3-none-any.whl Python 3 none any Details

Total release size: 75.8 MB

Release files / deepracer_utils-1.5.6.tar.gz

Download URL deepracer_utils-1.5.6.tar.gz
Size 75.8 MB
Tags Source
SHA-256 checksum
How to use checksums
b22dcff78453e1341db761748766f5031dcf2fa0b4af81f7874b31e25396a293
BLAKE2b-256 checksum
How to use checksums
025a95fb1b40c03f42c7f99292697817ee8f0c221ba342f8242e87c5f9dc5543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / deepracer_utils-1.5.6-py3-none-any.whl

Download URL deepracer_utils-1.5.6-py3-none-any.whl
Size 50.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37d9a93cd55c44169862c07f96b1abcb348d307e55970e4ff6da76e17a95b6d0
BLAKE2b-256 checksum
How to use checksums
bcc70bea2745e5bed479cff60a1eb1472a337878479d904ef9f694a246b3d548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.5.6 This release

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.22

2 release files

0.21

2 release files

0.20

2 release files

0.19

2 release files

0.18

2 release files

0.17

2 release files

0.16

2 release files

0.15

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page