Search Unity

Question Unable to use trained brain model

Discussion in 'ML-Agents' started by unity_1574E6C0E78C759DB5BB, Jun 1, 2021.

  1. unity_1574E6C0E78C759DB5BB

    unity_1574E6C0E78C759DB5BB

    Joined:
    Jun 1, 2021
    Posts:
    1
    When I try to copy the .onnx file into assets, Unity gives me the following error:
    Asset import failed, "Assets/PlayGame.onnx" > AssertionException: Assertion failure. Values are not equal.
    Expected: 3 == 4

    I have no idea what is causing this and what to do about this.

    When I tried to copy it into the example project in the ml-agents repository, it seems to work fine
     
    Last edited: Jun 1, 2021
  2. vincentpierre

    vincentpierre

    Joined:
    May 5, 2017
    Posts:
    160
    Not sure what could be wrong with the model, it might be due to a difference between the barracuda versions installed in your two projects. Can you verify the versions match ?