Visualizing The Data minerl.viewer
To help you get familiar with the MineRL dataset,
the minerl
python package also provides a data trajectory viewer called
minerl.viewer
:
The minerl.viewer
program lets you step through individual
trajectories,
showing the observation seen the player, the action
they took (including camera, movement, and any action described by an MineRL
environment’s action space), and the reward they received.
Error
Unable to execute python code at minerl_tools.rst:25:
No module named ‘minerl’
Try it out on a random trajectory by running:
# Make sure your MINERL_DATA_ROOT is set!
export MINERL_DATA_ROOT='/your/local/path'
# Visualizes a random trajectory of MineRLObtainDiamondDense-v0
python3 -m minerl.viewer MineRLObtainDiamondDense-v0
Try it out on a specific trajectory by running:
Error
Unable to execute python code at minerl_tools.rst:51:
No module named ‘minerl’
Interactive Mode minerl.interactor
Once you have started training agents, the next step is getting them to interact with human players.
To help achieve this, the minerl
python package provides a interactive Minecraft client called
minerl.interactor
:
The minerl.interactor
allows you to connect a human-controlled Minecraft client
to the Minecraft world that your agent(s) is using and interact with the agent in real time.
Note
For observation-only mode hit the t
key and type /gamemode sp
to enter
spectator mode and become invisible to your agen``t(s).
Error
Unable to execute python code at minerl_tools.rst:92:
No module named ‘minerl’