ML Agents Training


Installation

Training

  1. In your ml-agents clone repositry, make sure the config yaml file exists.
  2. Make sure your scene is opened in the Unity Hub.
  3. Run the command with the target config file and id name. mlagents-learn /media/yui/Disk/doc/ml-agents-release_2/config/trainer_config.yaml --run-id 3dball_01
  4. Click the play button. The training will start.
  5. Click the play button again to stop. It will save the model as .nn extension.
  6. To adjust the play speed (simulation speed). You can click tab Edit, click Project Settings, Time and Time Scale.
  7. To apply the new brain to the agent, drag .nn model to TFModels, click the 3d object rightarrow, press Agent, drag model to Model in Behavior Parameters.

References