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

Sensor sizes must match

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

  1. Mirrorslav


    Sep 6, 2019
    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


    Unity Technologies

    May 5, 2017
    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.