浏览代码

Merge pull request #1262 from xiaodi-faith/patch-1

Update unity_env.py
/hotfix-v0.9.2a
GitHub 6 年前
当前提交
44ec88e9
共有 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(

正在加载...
取消
保存