-
Notifications
You must be signed in to change notification settings - Fork 724
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
Automatically saving good-quality simulation videos using a Python (.py) script rather than mediapy in a Jupyter notebook (.ipynb) #1650
Comments
|
Thanks @kevinzakka. Using
While this code successfully saves a video
I believe these warning messages occur due to this line of code:
Since the code still runs and produces the saved simulation video, should I just ignore these messages? Or do I need to modify my code so that I don't get these error messages? |
Does this go away if you add @kevinzakka, @kbayes, is there a bug in the implementation of |
Yes @yuvaltassa thankyou very much! It goes away if I add |
Hi,
I am accessing MuJoCo via the Python bindings. I currently run my simulations in a Jupyter notebook. Using the code below, I can simulate, render and save the rendered videos. However, to save the videos, I have to manually click "Download" on the resulting video (whereas I want to automate this saving process in a .py file?):
I understand mediapy's
show_video
function only works in a Jupyter notebook, but I eventually want to build my code in a Python script (.py).How can I run and save good-quality simulations in an automated way using a .py script rather than a Jupyter notebook? Ideally, I want to also have the option to run my simulations headless, but save the resulting good-quality videos to a file directory also?
Ideally, I would like the simulation videos to also have the same quality as seen below in the MuJoCo GUI:
good_quality_mjsim.mp4
Note that the videos produced using
mediapy
in the Jupyter notebook environment have noticeably worse quality:bad_quality_mediapy_mjsim.mp4
Summarising my questions:
(1) How can I run and save good-quality simulations in an automated way using a .py script rather than a Jupyter notebook?
(2) How can I optionally run the simulations in the OpenGL, good-quality rendering GUI or headless from a .py script?
(3) How to ensure that the simulations run from a .py file have high-quality resolution, and not bad quality as produced using `mediapy'?
The text was updated successfully, but these errors were encountered: