Sensor sizes must match

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.

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?
2 Likes