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

How to get image observation as an RGB value array? #50

Open
JJMUSA opened this issue Feb 23, 2018 · 5 comments
Open

How to get image observation as an RGB value array? #50

JJMUSA opened this issue Feb 23, 2018 · 5 comments

Comments

@JJMUSA
Copy link

JJMUSA commented Feb 23, 2018

We are trying to get an observation output of the vision image for each step in order to write an A3C algorithm with tensorflow that will be able to learn from vision.

We have made sure that the resolution is set to 64 x 64 when trying to run the agent and that vision is set to True when calling the environment:
en=TorcsEnv(vision=True, )

We get back an observation dictionary that does not contain an ' img' key, thus we get a KeyError.

@JJMUSA JJMUSA changed the title How to get image observation as an RGB array? How to get image observation as an RGB value array? Feb 23, 2018
@BCWang93
Copy link

BCWang93 commented Nov 7, 2018

HI,do you have solved this problem?I have the same problem recently.Thanks!

@JJMUSA
Copy link
Author

JJMUSA commented Nov 7, 2018

Hi,
The get_state() function in TorcsEnv class should return an image of the game. Make sure all the dependencies are installed and you set the screen resolution to 64X64.

@bardas
Copy link

bardas commented Mar 6, 2019

There is no such method...

@xkxiong
Copy link

xkxiong commented Jun 27, 2020

I changed the resolution to 64x64, but the extracted image is completely black, does anyone know why?

@colinzhaoxp
Copy link

I changed the resolution to 64x64, but the extracted image is completely black, does anyone know why?

hi,do you have solved this problem? Thanks!

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

No branches or pull requests

5 participants