Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vkakerbeck opened this issue Sep 17, 2020 · 3 comments · May be fixed by Unity-Technologies/obstacle-tower-source#30
Closed

Comments

@vkakerbeck
Copy link

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
Copy link
Contributor

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
Copy link
Author

vkakerbeck commented Sep 17, 2020

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants