Farama-Foundation / Arcade-Learning-Environment

The Arcade Learning Environment (ALE) -- a platform for AI research.
https://ale.farama.org/
GNU General Public License v2.0
2.18k stars 424 forks source link

All 3 GetScreen functions return a frame that's averaged with the last one #141

Closed jeanharb closed 8 years ago

jeanharb commented 8 years ago

Hey guys,

I'm not sure if it's supposed to be like this, but using ale_python_inferface's getScreenGrayscale I get the following image in breakout. You can see that the paddle is averaged out from its movement. I also get the same effect from getScreen and getScreenRGB. In pong, both paddles had the effect. breakout_frame

Thanks, Jean

jeanharb commented 8 years ago

Just found the flag. In the manual, it says that -color_averaging is set to False by default, but it seems to be set to True.

Just with a quick search, I assume it's https://github.com/mgbellemare/Arcade-Learning-Environment/blob/cf248f59c56cf7314c1d91112b56745f43bab80a/src/emucore/Settings.cxx#L707.

pierrelux commented 8 years ago

@jeanharb It seems that the doc should be updated then !