在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tambetm/gym-minecraft开源软件地址(OpenSource Url):https://github.com/tambetm/gym-minecraft开源编程语言(OpenSource Language):Python 95.2%开源软件介绍(OpenSource Introduction):Gym MinecraftThis project is outdated, please use MalmoEnv instead. Gym Minecraft is an environment bundle for OpenAI Gym. It is based on Microsoft's Malmö, which is a platform for Artificial Intelligence experimentation and research built on top of Minecraft. Basically these are original Malmö missions with only Installation
Basically Minecraft downloads and compiles everything on first start, this snippet just starts Runningimport gym
import gym_minecraft
env = gym.make('MinecraftBasic-v0')
env.init(start_minecraft=True)
env.reset()
done = False
while not done:
env.render()
action = env.action_space.sample()
obs, reward, done, info = env.step(action)
env.close() NB! Running Minecraft for the first time might take a while as it downloads and compiles itself. Next time the startup time should be shorter, but still around 30 seconds. In active development phase you might want to start one permanent Minecraft process in background and remove Overriding default settingsThe default settings for environments might not be optimal for you. Luckily you can easily override them using For example to use discrete actions instead of continuous actions: env = gym.make('MinecraftBasic-v0')
env.init(allowDiscreteMovement=["move", "turn"]) To use continuous actions instead of discrete actions: env = gym.make('MinecraftBasic-v0')
env.init(allowContinuousMovement=["move", "turn"]) To use different video resolution: env = gym.make('MinecraftBasic-v0')
env.init(videoResolution=[40, 30]) More documentation about configuration options is in wiki. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论