Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created July 21, 2019 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/6b9b4c399a64e2ea9d3ce9cd672de364 to your computer and use it in GitHub Desktop.
Save NMZivkovic/6b9b4c399a64e2ea9d3ce9cd672de364 to your computer and use it in GitHub Desktop.
enviroment.reset()
frames = []
for _ in range(NUMBER_OF_FRAMES):
enviroment.step(enviroment.action_space.sample())
frame = img_processor.resize_and_grayscale(enviroment.ale.getScreenRGB())
frames.append(frame)
img_processor.plot_frames(frames, gray=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment