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 )