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

OpenGL rendering on a remote server over X11 #202

Open
1 task done
jrjbertram opened this issue Aug 9, 2022 · 0 comments
Open
1 task done

OpenGL rendering on a remote server over X11 #202

jrjbertram opened this issue Aug 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jrjbertram
Copy link

Search before asking

  • I have searched the MuZero issues and found no similar bug report.

🐛 Describe the bug

Tried this out on a remote server with GPU. Ran into the well-known issue(s) with trying to render OpenAI gym (OpenGL based) while logged into an ssh connection with X11 forwarding (e.g., ssh -Y user@someserver).

To save some other people some googling, this worked surprisingly well if you add it to the beginning of muzero.py:

https://stackoverflow.com/questions/40195740/how-to-run-openai-gym-render-over-a-server

from pyvirtualdisplay import Display
display = Display(visible=1, size=(1400, 900))
display.start()

And then install the package with:

pip install pyvirtualdisplay

I was then able to manually inspect that MuZero was in fact balancing cartpole. Hope this helps someone else!

Add an example

N/A

Environment

N/A

Minimal Reproducible Example

N/A

Additional

Not sure if this is a feature request or a bug.

@jrjbertram jrjbertram added the bug Something isn't working label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant