From dfee3a046150879bff13e46a4d785b59fc886acb Mon Sep 17 00:00:00 2001 From: Ervin Teng Date: Wed, 24 Jul 2019 18:07:41 -0700 Subject: [PATCH 1/2] Tick versions of gym, ml-agents, ml-agents-envs --- gym-unity/setup.py | 4 ++-- ml-agents-envs/setup.py | 2 +- ml-agents/setup.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gym-unity/setup.py b/gym-unity/setup.py index 92a6bbdc4d..f5ccf499c3 100755 --- a/gym-unity/setup.py +++ b/gym-unity/setup.py @@ -4,12 +4,12 @@ setup( name="gym_unity", - version="0.4.2", + version="0.4.3", description="Unity Machine Learning Agents Gym Interface", license="Apache License 2.0", author="Unity Technologies", author_email="ML-Agents@unity3d.com", url="https://github.com/Unity-Technologies/ml-agents", packages=find_packages(), - install_requires=["gym", "mlagents_envs==0.8.2"], + install_requires=["gym", "mlagents_envs==0.9.0"], ) diff --git a/ml-agents-envs/setup.py b/ml-agents-envs/setup.py index 7e7fd49864..6edacf1721 100644 --- a/ml-agents-envs/setup.py +++ b/ml-agents-envs/setup.py @@ -5,7 +5,7 @@ setup( name="mlagents_envs", - version="0.8.2", + version="0.9.0", description="Unity Machine Learning Agents Interface", url="https://github.com/Unity-Technologies/ml-agents", author="Unity Technologies", diff --git a/ml-agents/setup.py b/ml-agents/setup.py index 355caa3f2a..c7486140ef 100644 --- a/ml-agents/setup.py +++ b/ml-agents/setup.py @@ -10,7 +10,7 @@ setup( name="mlagents", - version="0.8.2", + version="0.9.0", description="Unity Machine Learning Agents", long_description=long_description, long_description_content_type="text/markdown", @@ -29,7 +29,7 @@ ), zip_safe=False, install_requires=[ - "mlagents_envs==0.8.2", + "mlagents_envs==0.9.0", "tensorflow>=1.7,<1.8", "Pillow>=4.2.1", "matplotlib", From 6fcbb50b5ea56e6db60b84da78bae43fb772fb4b Mon Sep 17 00:00:00 2001 From: Ervin Teng Date: Wed, 24 Jul 2019 18:21:24 -0700 Subject: [PATCH 2/2] Tick communication API to 9 --- UnitySDK/Assets/ML-Agents/Scripts/Academy.cs | 2 +- ml-agents-envs/mlagents/envs/environment.py | 2 +- ml-agents-envs/mlagents/envs/mock_communicator.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UnitySDK/Assets/ML-Agents/Scripts/Academy.cs b/UnitySDK/Assets/ML-Agents/Scripts/Academy.cs index d6cecb4acf..ae66f328cf 100755 --- a/UnitySDK/Assets/ML-Agents/Scripts/Academy.cs +++ b/UnitySDK/Assets/ML-Agents/Scripts/Academy.cs @@ -95,7 +95,7 @@ public abstract class Academy : MonoBehaviour [SerializeField] public BroadcastHub broadcastHub = new BroadcastHub(); - private const string kApiVersion = "API-8"; + private const string kApiVersion = "API-9"; /// Temporary storage for global gravity value /// Used to restore oringal value when deriving Academy modifies it diff --git a/ml-agents-envs/mlagents/envs/environment.py b/ml-agents-envs/mlagents/envs/environment.py index e09b7ee9bd..b6acf890cd 100644 --- a/ml-agents-envs/mlagents/envs/environment.py +++ b/ml-agents-envs/mlagents/envs/environment.py @@ -69,7 +69,7 @@ def __init__( atexit.register(self._close) self.port = base_port + worker_id self._buffer_size = 12000 - self._version_ = "API-8" + self._version_ = "API-9" self._loaded = ( False ) # If true, this means the environment was successfully loaded diff --git a/ml-agents-envs/mlagents/envs/mock_communicator.py b/ml-agents-envs/mlagents/envs/mock_communicator.py index 8a7e47bacd..da0cdf7b53 100755 --- a/ml-agents-envs/mlagents/envs/mock_communicator.py +++ b/ml-agents-envs/mlagents/envs/mock_communicator.py @@ -54,7 +54,7 @@ def initialize(self, inputs: UnityInput) -> UnityOutput: is_training=True, ) rl_init = UnityRLInitializationOutput( - name="RealFakeAcademy", version="API-8", log_path="", brain_parameters=[bp] + name="RealFakeAcademy", version="API-9", log_path="", brain_parameters=[bp] ) return UnityOutput(rl_initialization_output=rl_init)