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

Headless running (without 3D rendering) #705

Open
EhsanSabouni opened this issue Apr 18, 2024 · 1 comment
Open

Headless running (without 3D rendering) #705

EhsanSabouni opened this issue Apr 18, 2024 · 1 comment

Comments

@EhsanSabouni
Copy link

Hi
I hope you are doing well.

I want to run the envs without 3D rendering/visualization for two main reasons. 1) Running headless will make it much faster in training 2) I am also trying to run the code by ssh to my server-based machine but unfortunately I cannot run with visualization. I would be thankful if someone can tell me how I can run the metadrive simulation without visualization and if that is going to solve my problem with running through ssh.

Best regards

@QuanyiLi
Copy link
Member

Hi,

Are you only interested in simulating with physics and without any camera output? If so, you can turn off rendering by specifying use_render=False in the environment config. If you need to collect camera data for your model training, please see: https://metadrive-simulator.readthedocs.io/en/latest/install.html#install-metadrive-with-headless-rendering You can even let your headless machine output images for each frame, and combine them to a video with ffmpeg, so you can have visualization results as well.

Best,
Quanyi

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