浏览代码

Update unity_env.py

using multiple observations
/hotfix-v0.9.2a
GitHub 6 年前
当前提交
6f40477c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      gym-unity/gym_unity/envs/unity_env.py

2
gym-unity/gym_unity/envs/unity_env.py


if use_visual and brain.number_visual_observations == 0:
raise UnityGymException("`use_visual` was set to True, however there are no"
" visual observations as part of this environment.")
self.use_visual = brain.number_visual_observations == 1 and use_visual
self.use_visual = brain.number_visual_observations >= 1 and use_visual
if brain.num_stacked_vector_observations != 1:
raise UnityGymException(

正在加载...
取消
保存