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.
  2. Dismiss Notice

Question vis_encoder_type always reset to "simple"

Discussion in 'ML-Agents' started by KevinOfCathay, Aug 16, 2020.

  1. KevinOfCathay

    KevinOfCathay

    Joined:
    Dec 21, 2019
    Posts:
    7
    Hello, I'm trying to set my vis_encoder_type to resnet or nature_cnn. However, as soon as I started training, the vis_encoder_type always got reset to simple. I've tried to set trainer_type to sac instead of ppo, but didn't work.
    This is a bug or I did something wrong?

    Yaml File
    visencodetype 2.png
    Console:
    visencodetype.png
     
  2. jeffrey_unity538

    jeffrey_unity538

    Unity Technologies

    Joined:
    Feb 15, 2018
    Posts:
    59
    hi KevinOfCathay - sorry for the naive question (just double checking :)) - when you launch mlagents-learn, are you pointing to the right configuration file (the one you indicated above)?
     
  3. KevinOfCathay

    KevinOfCathay

    Joined:
    Dec 21, 2019
    Posts:
    7
    Yes, I'm pretty sure I was using the right configuration file.
    location.png
    location2.png
    The version I'm using is 1.1.0. But I've got this issue since 1.0.2.

    I also uploaded the whole logging file, just in case you want to check it.
     

    Attached Files:

    • Log.txt
      File size:
      5.5 KB
      Views:
      269
  4. Rechant

    Rechant

    Joined:
    Mar 14, 2020
    Posts:
    2
    Not sure if this will help, but I had this issue a while back and the reason was that the behavior name should be the same between Unity and your yaml file (in your case, both needs to be "Sweeper"). Also try using the "--force" flag, but not sure if that did anything.
     
  5. Kapitalstocken

    Kapitalstocken

    Joined:
    Aug 31, 2020
    Posts:
    1
    Its a simple typo. its called vis_encode_type and you have vis_encoder_type. The console outpout with your arrow on it says *_encode_* as well.