Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Imitation learning without sensors

Discussion in 'ML-Agents' started by VampyrBytes, May 15, 2022.

  1. VampyrBytes

    VampyrBytes

    Joined:
    Sep 27, 2018
    Posts:
    3
    Is it possible to set up imitation learning when the project doesn't have any sensors in it?

    The documentation and functions on the demonstration recorder seem minimal. I'm assuming usually it uses sensors to detect what is happening. However, in my projecty I don't use sensors to gather observations, they're all set through AddObservations() in an agent.

    If it is possible, how do I let the demonstration recorder know what's going on?
     
  2. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    AddObservations() is actually using a vector sensor. It is being defined when you're setting the vector observation space size to any value other than 0.