Unity-Technologies / obstacle-tower-env

Obstacle Tower Environment
Apache License 2.0
540 stars 124 forks source link

Visual Observation Size not high resolution (168x168x3) #126

Closed vkakerbeck closed 3 years ago

vkakerbeck commented 3 years ago

Hello,

I've been working with the Obstacle Tower Environment version 2.2 for a while and have recently downloaded the newest version. However, this new version now always returns observations of size 84x84x3, even if retro mode is set to false. Is there another parameter that I need to set to get the high resolution images again.

To test I run: from obstacle_tower_env import ObstacleTowerEnv env = ObstacleTowerEnv(retro=False, realtime_mode=False) obs = env.reset() obs[0].shape

(84, 84, 3)

I have also tested calling the v4.1 executable with mlagents-learn but get observations of the 84x84 shape even if I set the --width and --height parameter to 168.

Thank you for any help!

MarcoMeter commented 3 years ago

Hi @vkakerbeck

this is an unintended behavior of the provided build. From the source I can tell that the agent's camera sensor is falsely set to 84x84. To solve your issue, a fixed build has to be provided. @awjuliani

An alternative for you is to make a fixed build yourself from source using obstacle-tower-source.

sensor

vkakerbeck commented 3 years ago

Hi @MarcoMeter

thank you for the fast reply and that insight, I thought I was going crazy! I will make a new executable from the source project with the higher resolution then and everything should work fine again :) Thank you again and have a great day

MarcoMeter commented 3 years ago

No problem.

I just came to think of that you are using v2.2. If you make a new build, you will have to upgrade to the latest version of obstacle-tower-env as well.