Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

can't set property Model of Behavior Parameters in example project

Discussion in 'ML-Agents' started by knightpraetor, Jul 14, 2020.

  1. knightpraetor

    knightpraetor

    Joined:
    Apr 27, 2015
    Posts:
    3
    so I'm following the getting started guide, so I downloaded the repo and am trying to set the model for the agent's behavior.

    1. Installation steps: download repo
    2. Copy project folder into new unity project.
    3. use unity's package manager to install package mlagents using the package.json file in the repo.
    4. various python setup.

    After setting this up, the 3dBall scene can scene can run, but the model for the agents is not set.

    when I try to select from available models, all the models inside the examples/[SceneName]/TFModels folders are displayed strangely as if they did not import into unity properly.

    However, the .nn models underneath Packages/MLAgents/Tests/Editor/TestModels all display correctly and can be set.

    What can I do to import these *.nn models correctly? or are they not usable because they are from a prior version? do i need to generate a new model in python to test the scene?
     
  2. knightpraetor

    knightpraetor

    Joined:
    Apr 27, 2015
    Posts:
    3
    nevermind, I just skipped that part of the tutorial and continued and it shows how to regen new .nn files with python. So it's probably not a big deal whether the repo's .nn files are an old incompatible version, as the person checking it out can just generate a new neural network file