Created
April 26, 2022 09:59
-
-
Save Paulescu/0c9819d9b4b3ed5ceb03a3d79181f707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workaround for pygame error: "error: No available video device" | |
# See https://stackoverflow.com/questions/15933493/pygame-error-no-available-video-device?rq=1 | |
# This is probably needed only for Linux | |
import os | |
os.environ["SDL_VIDEODRIVER"] = "dummy" | |
from src.viz import show_video | |
show_video(agent, env, sleep_sec=0.01, seed=12345) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment