Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Sensor sizes must match

Discussion in 'ML-Agents' started by Mirrorslav, Dec 1, 2020.

  1. Mirrorslav

    Mirrorslav

    Joined:
    Sep 6, 2019
    Posts:
    2
    Hello, I have started with ml-agents yesterday so I have almost no experience. Has anyone had the error called Sensor sizes must mach? I've checked the code, unity settings and didn't found any problem, so I have no idea what to do. Thank you for your help.
     
  2. vincentpierre

    vincentpierre

    Joined:
    May 5, 2017
    Posts:
    160
    Hi,
    This error usually means that the expected shape fo the Sensors did not match the shape of the Sensor received. This can happen if :
    - The shape of a Sensor changes at runtime AFTER the Agent was initialized
    - 2 Different Agents with the same behavior name do not have the same sensors. for example, both having a camera sensor, but with different resolutions.
    Do you see this error happen on an example environment?
     
    Glolut and CreativeUrge like this.