Open panda-saroj opened 5 years ago
Hello @saroj-uta
It seems that you likely have another installation of mlagents with a greater version number than 0.6.2.
I did pip3 install mlagents==0.6
That solved my problem. But, I am wondering, why installing from source did’t work. I had specified mlagents version as 0.6 in the setup.py and had installed it using
Pip3 install -e . Pip3 list | grep mlagents also showed version as 0.6 when I had installed from source.
Best Regard, Saroj
From: Arthur Juliani notifications@github.com Sent: Monday, April 22, 2019 12:29 PM To: Unity-Technologies/obstacle-tower-env obstacle-tower-env@noreply.github.com Cc: Panda, Saroj K saroj.panda@mavs.uta.edu; Mention mention@noreply.github.com Subject: Re: [Unity-Technologies/obstacle-tower-env] API number not compatible between Unity and Python. Python API : API-8, Unity API : API-6 (#86)
It seems that you likely have another installation of mlagents with a greater version number than 0.6.2.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FUnity-Technologies%2Fobstacle-tower-env%2Fissues%2F86%23issuecomment-485485281&data=02%7C01%7Csaroj.panda%40mavs.uta.edu%7Cfa48581425c34f75311808d6c747fa5a%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636915509288389117&sdata=HmGDkhLfie139LCyC442uAn5HPtktpk8wOZlWqnqfO8%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAECM24H2ERSGBWYVKGECUJDPRXYU5ANCNFSM4HHNLN4Q&data=02%7C01%7Csaroj.panda%40mavs.uta.edu%7Cfa48581425c34f75311808d6c747fa5a%7C5cdc5b43d7be4caa8173729e3b0a62d9%7C0%7C0%7C636915509288389117&sdata=WtR5TFYDdompBu3DmGnyfCcKVJkWVrTNcnwuYjuMWyY%3D&reserved=0.
In the AI Crowd forum it was said that v2.0 would include the new ml-agents version. Right now it looks like it still requires ml-agents<0.7, will there be another update?
Hi @vkakerbeck
Our team had an internal discussion concerning this, and we decided to keep the requirements as-is for Round 2. The reasoning was that participants who have made it to Round 2 are already using the 0.6 release, and therefore would not benefit from the upgrade, whereas it may introduce other incompatibilities. For the open source release in a couple months we plan to upgrade to the current version of ml-agents package at that point. Apologies for the inconvenience this may cause.
Hi @awjuliani, thank you for your fast reply! Is there some workaround how I could use the num-envs parameter introduced here https://blogs.unity3d.com/2019/04/15/unity-ml-agents-toolkit-v0-8-faster-training-on-real-games/ in order to speed up the training? It would be extremely useful to be able to use this.
Hi @vkakerbeck
In the near-term I would recommend using OpenAI baselines to train with multiple concurrent instances of the environment. You can find instructions here: https://github.com/Unity-Technologies/ml-agents/tree/master/gym-unity
I have most updated ml-agents 1.7.2 and am now getting same issue.:
Version information:
ml-agents: 0.22.0,
ml-agents-envs: 0.22.0,
Communicator API: 1.2.0,
PyTorch: 1.7.0+cu110
2021-02-04 15:44:20 INFO [learn.py:275] run_seed set to 7748
2021-02-04 15:44:22 INFO [environment.py:205] Listening on port 5004. Start training by pressing the Play button in the Unity Editor.
2021-02-04 15:44:31 WARNING [environment.py:104] WARNING: The communication API versions between Unity and python differ at the minor version level. Python API: 1.2.0, Unity API: 1.3.
This means that some features may not work unless you upgrade the package with the lower version.Please find the versions that work best together from our release page.
https://github.com/Unity-Technologies/ml-agents/releases
2021-02-04 15:45:31 INFO [subprocess_env_manager.py:184] UnityEnvironment worker 0: environment stopping.
2021-02-04 15:45:31 INFO [trainer_controller.py:85] Saved Model
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Program Files\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\jon.f.hauris\python-envs\focus\Scripts\mlagents-learn.exe__main__.py", line 7, in
Hi @jfhauris
I would recommend using the latest supported version of ML-Agents with Obstacle Tower, which is 1.1.
Have installed Unity 2018.3.13f1 on Linux Ubuntu 16.04 Based on the requirements of obstacle-tower-env, have installed mlagents 0.6.2 and mlagents-envs 0.6.2
When I try to train the obstacle-tower using mlagents-learn, I get the error API number not compatible between Unity and Python. Python API : API-8, Unity API : API-6
How do I downgrade Python API to API-8?