Search Unity

Question Running Environment Executable without providing file_name in the python code

Discussion in 'ML-Agents' started by mazalan01, Sep 15, 2021.

  1. mazalan01

    mazalan01

    Joined:
    Jun 12, 2021
    Posts:
    2
    Hi, I'm trying to use an environment executable for my training, but I don't want the python code to start the environment by providing the file_name, instead I would like to start it by opening the file. Is this possible, and if it is how?

    My goal is to have the training code and the environment in two different docker container, so I can do the training while having these on different servers. This is the reason why I'm using an executable and why I can't just have the python API open it.
     
  2. mazalan01

    mazalan01

    Joined:
    Jun 12, 2021
    Posts:
    2
    I figured it out, you just have to provide the argument "--mlagents-port 5005" when running the executable so it knows the correct port to communicate on.