Running "mlagents-learn" from Unity Process

Unity3D/ml-agent 2019. 6. 1. 23:25
반응형

https://github.com/Unity-Technologies/ml-agents/issues/1500

 

Running "mlagents-learn" from Unity Process · Issue #1500 · Unity-Technologies/ml-agents

Hi guys, I'm trying to figure out how to run the training from a Unity Process instead of doing by hand in the command line. I tried to execute python ml-agents\mlagents\trainers\learn.py but I...

github.com

13Flo commented on 17 Dec 2018  

edited 

Hi guys,

I'm trying to figure out how to run the training from a Unity Process instead of doing by hand in the command line. I tried to execute python ml-agents\mlagents\trainers\learn.py but I get the following errors: No module named 'docopt'. I also tried to execute a batch file containing activate ml-agents and then mlagents-learn config.yaml --train --run-id=xxx but that won't work either (everything that comes after activate in the .bat file is ignored).

Someone is doing that with ml-agents 0.3 here, so I assume it is possible, but he folder structure has changed in 0.5 and I can't figure out how to do that with Conda.

Could anybody help me with that? Thanks!

  

Author

13Flo commented on 17 Dec 2018

(replying to myself after finding a solution)
The trick was actually to do (in a batch file):
call C:\Users\username\Anaconda3\Scripts\activate.bat C:\Users\username\Anaconda3
call mlagents-learn config.yaml --train --run-id=xxx

반응형
: