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

Object Rendering Issue #578

Open
emdeutsch opened this issue Nov 18, 2024 · 2 comments
Open

Object Rendering Issue #578

emdeutsch opened this issue Nov 18, 2024 · 2 comments

Comments

@emdeutsch
Copy link

I am building a RL bot for Frogger and Space Invader and when I use the RecordVideo Wrapper, as well as when I print the observed frames by the AI, all of the objects on the same row as the AI are not visible for Frogger. Similarly, enemy bullets are never visible in Space Invader. Both of these objects happen to be transparent in human mode, has anyone experienced this and is there an easy work around?

@emdeutsch
Copy link
Author

emdeutsch commented Nov 18, 2024

Screenshot 2024-11-18 at 5 31 53 PM
frogger-episode-0.mp4

Here are some examples, and as far as I can tell the AI cannot see these objects either. Again, in human mode, it all looks good.

@pseudo-rnd-thoughts
Copy link
Member

If you are using frameskip>1 then this will cause issues in some environments as some objects will flicker to optimise GPU resources.
You can avoid this through the base environment using frameskip=1, then the RecordVideo wrapper then the AtariPreprocessing wrapper to apply frameskip

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

2 participants