admin管理员组文章数量:1123664
I have ml-agents up and running. When I run mlagents-learn from the command line, and play the game from the Unity Editor - everything works fine (the agent trains). But when I build the game and try to run mlagents on the executable - no training is preformed. In fact, I believe the python script is getting stuck - I think it runs the game, but never returns to continue executing the code. I have checked this by writing a simple python script to open the game and debug it:
from mlagents_envs.environment import UnityEnvironment
env = UnityEnvironment(file_name=path)
print("yay")
I ran this code on my executable, and the print command was never reached. I know the problem isn't with python, because I managed to get it to work with executables I found online:
- Basic: .0.0/windows/Basic.zip
- Pyramids:
In addition, I know the problem is not with the game, because I ran into these problems also with the 3DBall example, and the very simple ball and plane example (/). Same problem each time: Training works in the editor, but not with the executable.
I suspect something is wrong with the build process, but I don't know what. I followed the instructions here: / I have selected "Run In Background" in the Player Settings, I have tried with and without "Development Build" - all without success. After hours spent on this issue, I decided to try my luck with posting a bug...
Any help will be appriciated!
The training stuck:
Environment:
- Unity Version: I have tried with 2022.3.7f1, and with 6000.0.31f1
- OS + version: Windows 10.
- ML-Agents version: latest
develop
branch from source - branch 22, mlagents 1.1.0 - Enviroment: 3DBall and simple example
本文标签: pythonMLAgents Environment Executables unable to trainGame is launched insteadStack Overflow
版权声明:本文标题:python - ML-Agents: Environment Executables unable to train - Game is launched instead - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736582459a1944964.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论