- Home /
Question by
rajanlagah · Jun 04, 2020 at 03:51 PM ·
agentpython
'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-cube-game.x86_64")
env.reset()
behavior_names = env.behavior_spec.keys()
print(behavior_names)
Game window pop up and then terminal show error saying
Traceback (most recent call last):
File "index.py", line 6, in <module>
behavior_names = env.behavior_spec.keys()
AttributeError: 'UnityEnvironment' object has no attribute 'behavior_spec'
I created environment by following THIS ( it make without brain ) and i was able to train modal by .conf file. Now i wanted to connect to python API.
Comment