A set of tools for working with DeepRacer training
Project description
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.tomlfor 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
- Refer to development.md for instructions on coding standards, unit tests etc.
- Refer to examples.md for usage guidance.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepracer_utils-1.5.6.tar.gz.
File metadata
- Download URL: deepracer_utils-1.5.6.tar.gz
- Upload date:
- Size: 75.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b22dcff78453e1341db761748766f5031dcf2fa0b4af81f7874b31e25396a293
|
|
| MD5 |
b7f133f02b5eacaca2fda206172dbe11
|
|
| BLAKE2b-256 |
025a95fb1b40c03f42c7f99292697817ee8f0c221ba342f8242e87c5f9dc5543
|
File details
Details for the file deepracer_utils-1.5.6-py3-none-any.whl.
File metadata
- Download URL: deepracer_utils-1.5.6-py3-none-any.whl
- Upload date:
- Size: 50.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d9a93cd55c44169862c07f96b1abcb348d307e55970e4ff6da76e17a95b6d0
|
|
| MD5 |
7b9ed3e46608aea9772538e6d8f984ad
|
|
| BLAKE2b-256 |
bcc70bea2745e5bed479cff60a1eb1472a337878479d904ef9f694a246b3d548
|