ml-agents/ml-agents-envs
Miguel Alonso Jr. ac576f9f6d
Release 22 mm (#6157)
* adding wrench

* correct build path

* release branch and 6.0 target

* XmlDoc update

* adressing xml docs

* more docs

* updating the release

* test xmldoc fixes

* more xml doc fixes

* Uncompress the 3DBall sample

* Fix API documentation

* more xml doc fixes

* Revert "Uncompress the 3DBall sample"

This reverts commit d67dc94192.

* reformat MaxStep xml

* more xml doc fixes

* fix more xml doc issues

* fix summary tag

* Updated changelog for missing PRs.

* Removed tabs from .tests.json.

* Updated changelog.

* Removed tabs from CHANGELOG.

* Fix failing ci post upgrade (#6141) (#6145)

* Update PerformancProject and DevProject.

* Removed mac perf tests.

* Removing standalone tests dep from wrench packaging.

* Fixed package works issues. Updated com.unity.ml-agents.md.

* Updated com.unity.ml-agents.md.

* Updated package version in Academy.cs

* Adding back in package pack deps.

* Updated package pack testing deps..

* Regenerated wrench ymls.

* License update.

* Extensions License update.

* Another license tweak.

* Another license tweak.

* Upgraded to sentis 2.1.0.

* Updated standalone yamato build test to using new ml-agents ubuntu ci bokken image.

* Bumped python and extensions package versions.

* Changed ci image for pytest gpu yamato test.

* Changed default cuda dtype to torch.float32.

* Updated version validation and extensions version.

* Fixed failing GPU test.

* Fixed failing GPU test.

* Updated readme table and make_readme_table.py

* Updated publish to pypi gha.

---------

Co-authored-by: alexandre-ribard <alexandre.ribard@unity3d.com>
Co-authored-by: Aurimas Petrovas <>
2024-10-05 13:53:04 -04:00
..
colabs
mlagents_envs
tests
README.md Release 22 mm (#6157) 2024-10-05 13:53:04 -04:00
pydoc-config.yaml
setup.py

README.md

Unity ML-Agents Python Interface

The mlagents_envs Python package is part of the ML-Agents Toolkit. mlagents_envs provides three Python APIs that allows direct interaction with the Unity game engine:

  • A single agent API (Gym API)
  • A gym-like multi-agent API (PettingZoo API)
  • A low-level API (LLAPI)

The LLAPI is used by the trainer implementation in mlagents. mlagents_envs can be used independently of mlagents for Python communication.

Installation

Install the mlagents_envs package with:

python -m pip install mlagents_envs==1.1.0

Usage & More Information

See

for more information on how to use the API to interact with a Unity environment.

For more information on the ML-Agents Toolkit and how to instrument a Unity scene with the ML-Agents SDK, check out the main ML-Agents Toolkit documentation.

Limitations

  • mlagents_envs uses localhost ports to exchange data between Unity and Python. As such, multiple instances can have their ports collide, leading to errors. Make sure to use a different port if you are using multiple instances of UnityEnvironment.
  • Communication between Unity and the Python UnityEnvironment is not secure.
  • On Linux, ports are not released immediately after the communication closes. As such, you cannot reuse ports right after closing a UnityEnvironment.