Trajectory Visualization
Visualization of data and/or model trajectories on a 2D plane using pygame.
The trajectory can be made of positions but may extend to aim, jump, leaning, etc.
Installation
Clone the repository and install the dependencies:
git clone git@gitlab-ncsa.ubisoft.org:tboulet/trajectory-visualization.git
cd trajectory-visualization
pip install -r requirements.txt
Visualize trajectories from JSON data
Run the following command to visualize the trajectories from the JSON data file data.json:
python trajectory_vis\vizualizers\visualizer_from_json.py --path=<path_to_json_folder> --random=<true or false> --n=<number_of_trajectories_to_visualize_at_once>
If you don't specify any path, the default path "//ubisoft.org/projects/r6/mtl/Public/AIBots/playerdata/y8s1.2/bigresults/output" will be used.
Visualize trajectories from the Drain database
This is done as a drain job. The configuration can be modified in the yaml file yamls\visualize_episodes.yaml. Once it is done, run the following command:
drain run --yaml=yamls\visualize_episodes.yaml
Visualize trajectories from a model
TODO
Release files for trajectory-vis 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trajectory_vis-1.0.0.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trajectory_vis-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / trajectory_vis-1.0.0.tar.gz
| Download URL | trajectory_vis-1.0.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91ae3a20ad92296495eb8bf379efdab54343cb87329279b0266c1e4fe4cab7cb
|
|
BLAKE2b-256 checksum How to use checksums |
cd89df19378e8d0ee517bad430e2ab38161f6a974d018b981778e4c54c22960a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / trajectory_vis-1.0.0-py3-none-any.whl
| Download URL | trajectory_vis-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50e6a61d686b3d04848d3814fe8ecea1857cccd68871fcd79f643647e49ebae1
|
|
BLAKE2b-256 checksum How to use checksums |
8020022194d8f25add79aa0fae56693a6a3496e08082b6e70693603cb6d4f877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|