dmc2gym
1.0.0
在DeepMind Control Suite周围轻巧的包装器,该套件提供标准的OpenAI健身房界面。包装器允许指定以下内容:
from_pixels=True将本体感受观测转换为基于图像的观察。另外,您可以通过设置height和width来选择图像尺寸。[-1, 1]范围内。frame_skip参数使得执行操作重复。 pip install git+git://github.com/denisyarats/dmc2gym.git
import dmc2gym
env = dmc2gym . make ( domain_name = 'point_mass' , task_name = 'easy' , seed = 1 )
done = False
obs = env . reset ()
while not done :
action = env . action_space . sample ()
obs , reward , done , info = env . step ( action )