-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NeurIPS2022 competition agent to agent zoo (#1838)
- Loading branch information
1 parent
41ec4b7
commit 8b40512
Showing
12 changed files
with
129 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.. _agent_zoo: | ||
|
||
Agent Zoo | ||
========= | ||
|
||
Numerous prebuilt and trained agents are hosted at `zoo/policies <https://github.com/huawei-noah/SMARTS/tree/master/zoo/policies>`_ . | ||
These agents should be installed prior to being used in SMARTS environments or benchmarks. | ||
|
||
.. code-block:: bash | ||
$ cd <path>/SMARTS | ||
# Install a zoo agent. | ||
$ scl zoo install <agent path> | ||
# e.g., scl zoo install zoo/policies/interaction_aware_motion_prediction | ||
.. note:: | ||
|
||
To build a wheel, execute: | ||
|
||
.. code-block:: bash | ||
$ scl zoo build <agent path> | ||
# e.g., scl zoo build zoo/policies/interaction_aware_motion_prediction | ||
Contribute agents | ||
----------------- | ||
|
||
.. note:: | ||
This section is only for contributing to the agent zoo. | ||
|
||
First, add the new agent to `zoo/policies <https://github.com/huawei-noah/SMARTS/tree/master/zoo/policies>`_. It should contain | ||
|
||
* package setup file, | ||
* inference code with prebuilt model, and | ||
* algorithm explanation. | ||
|
||
Then, register the newly added zoo agent in `zoo/policies/__init__.py <https://github.com/huawei-noah/SMARTS/tree/master/zoo/policies/__init__.py>`_. | ||
|
||
Available zoo agents | ||
-------------------- | ||
|
||
.. _available_zoo_agents: | ||
.. list-table:: | ||
:header-rows: 1 | ||
|
||
* - Agent locator and path | ||
- Benchmark or Env | ||
- Action space | ||
- Source | ||
- Remarks | ||
* - | zoo.policies:interaction-aware-motion-prediction-agent-v0 | ||
| zoo/policies/interaction_aware_motion_prediction | ||
- driving_smarts==0.0 | ||
- :attr:`~smarts.core.controllers.ActionSpaceType.TargetPose` | ||
- `code <https://github.com/smarts-project/smarts-project.rl/tree/master/interaction_aware_motion_prediction>`__ | ||
- Contributed as part of `NeurIPS 2022 Driving SMARTS <https://smarts-project.github.io/archive/2022_nips_driving_smarts/>`_ competition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
zoo/policies/interaction_aware_motion_prediction/setup.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[metadata] | ||
name = smarts_agent_iamp_stub | ||
version = 0.1.0 | ||
url = https://github.com/huawei-noah/SMARTS | ||
description = SMARTS zoo agent. | ||
long_description = Trained Interaction-aware Motion Prediction agent. See [SMARTS](https://github.com/huawei-noah/SMARTS). | ||
long_description_content_type=text/markdown | ||
classifiers= | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.8 | ||
|
||
[options] | ||
packages = find: | ||
include_package_data = True | ||
zip_safe = True | ||
python_requires = == 3.8.* | ||
install_requires = | ||
smarts_agent_iamp==0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from setuptools import setup | ||
|
||
if __name__ == "__main__": | ||
setup() |