minerl icon indicating copy to clipboard operation
minerl copied to clipboard

minerl-0.4 observation['pov'] does not show inventory bar

Open qian18long opened this issue 2 years ago • 4 comments

When using plt.imshow to get the RGB observation of the agent, the picture does not contain the inventory bar or health stats. How should I also get that information in my RGB observation?

qian18long avatar Jul 10 '23 23:07 qian18long

Heya. MineRL versions older than 1.0 do not support inventory observation in the RGB image, it has been hardcode-removed from the image observation. I am not sure if it can be (easily) added back. This would definitely require modifying the Java code.

Miffyli avatar Jul 14 '23 17:07 Miffyli

Also remember that the observations are 64x64 in version 0.4, you wouldn't see much detail in the inventory bar or health stats when downsampled so much.

KarolisRam avatar Jul 17 '23 08:07 KarolisRam

Thanks for your reply. The 64*64 is the default, but I can also adjust the resolution right?

qian18long avatar Jul 17 '23 19:07 qian18long

By default only BASALT environments come with higher resolution variant. You will have to modify the environment specifications to increase the resolution. See this line for a hint on how to do it (sorry, there is no convenient interface to change it).

Miffyli avatar Jul 17 '23 19:07 Miffyli