Search Unity

Question Unity ml agents was stop training after it execute.

Discussion in 'ML-Agents' started by PankidT, Dec 12, 2022.

  1. PankidT

    PankidT

    Joined:
    Aug 11, 2022
    Posts:
    1
    Hello, I have a problem about unity mlagent. My environment is agent try to escape the room by press the button and moving to the exit. Everything doing well so far. However, when I create trainer_config.yaml to adjust the hyperparameter, I can execute `mlagents-learn \{config.yaml path} --run-id=test` but then when I press play button on Unity it start training for a second and then stop. I got the error message here "mlagents.trainers.exception.TrainerConfigError: The behavior name Roll agent has not been specified in the trainer configuration. Please add an entry in the configuration file for Roll agent, or set default_settings." And this is my tool version
    ML agents: 2.0.1 - November 08, 2021
    PyTorch: 1.11.0
    Editor version 2021.3.8f1
    I have no idea how to fix this problem
     

    Attached Files:

  2. OmarVector

    OmarVector

    Joined:
    Apr 18, 2018
    Posts:
    130
    Make sure the correct name is written here in your prefab
    upload_2022-12-27_4-58-44.png