facebookresearch/minihack

Is it possible to generate pixel images (ideally cropped) in a desired resolution?

Closed this issue · 2 comments

Right now, I use opencv as

env = gym.make(env, observation_keys=("pixel_crop",), penalty_step=0.0)
obs_dict, reward, done, info = env.step(action)
image = cv2.resize(obs_dict['pixel_crop'], dsize=(64, 64), interpolation=cv2.INTER_LINEAR)

I'm wondering if it's possible to avoid this resizing by just directly rendering in the desired resolution.

Hi @wcarvalho. We currently do not have such a functionality. The tileset we use includes only 16x16 tiles. If you wish to submit a PR for enabling this feature, I'd be happy to help!

Closing this issue. @wcarvalho feel free to reopen if there are further questions or submit a PR, if you have implemented this yourself.