Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Demonstration learning with child containing Ray Perception Sensor 2D

Discussion in 'ML-Agents' started by LootFox, May 22, 2020.

  1. LootFox


    Dec 3, 2018
    My agent uses two ray perception sensor 2D components with distinct detectable tags. One of the tags is the same as the agent which lead me to use a child game object to add an offset in order for the rays to project themselves(can't figure if it's possible to offset a 2D like 3D can). When I try to train I get the following error :

    RuntimeError: The vector observation dimensions of 64 in demonstration do not match the policy's 33.

    The Observations field of the demo file is: Shapes [33], [28], [3]

    I'd greatly appreciate it if someone could explain why the dimensionality doesn't match.

    SOLVED: there was another agent left in the scene with fewer obvservations that wasn't on Inference mode.
    Last edited: May 22, 2020