Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Run Unity build in inference mode while interacting with mlagents.envs

Discussion in 'ML-Agents' started by MarcoMeter, Feb 4, 2020.

  1. MarcoMeter

    MarcoMeter

    Joined:
    Jun 14, 2013
    Posts:
    69
    Hello,

    what's the equivalent approach to run a Unity build in inference mode, while the interaction is done via mlagents.envs.

    In v0.10.0 this was done by setting an argument during reset env.reset(train_mode=not self.realtime_mode)[brain_name].
    Now I cannot seem to find a solution in v.0.13.1.

    I tried to initialize the environment with no_graphics = False and setting the target frame rate inside the engine configuration to 60.
     
  2. anupambhatnagar

    anupambhatnagar

    Unity Technologies

    Joined:
    Jun 22, 2017
    Posts:
    4