Skip to content Skip to sidebar Skip to footer

'unityenvironment' Object Has No Attribute 'behavior_spec'

I followed this link to doc to create environment of my own. But when i run this from mlagents_envs.environment import UnityEnvironment env = UnityEnvironment(file_name='v1-ball-

Solution 1:

You need to use stable documents and stable repo( RELEASE_TAGS ) to achieve stable results. Unity ML Agents changes it's syntax every few months so that is problem if you are following master branch.

env.get_behavior_spec(behavior_name: str)

Should solve your problem.

https://github.com/Unity-Technologies/ml-agents/blob/release_2/docs/Python-API.md

Post a Comment for "'unityenvironment' Object Has No Attribute 'behavior_spec'"