-
Notifications
You must be signed in to change notification settings - Fork 898
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
[MJX
] does MJX
have its own renderer or does it rely on MuJoCo's renderer
#1264
Comments
Hi @Kallinteris-Andreas , If |
Instead of saving or showing the video with the help of mediap-py library is there also a way to render the model with the help of mujoco viewer while the RL training is going on. |
Hey @rs545837 , here is how the MuJoCo viewer is used with MJX. You could try loading a checkpoint and running a policy using that sample code For checkpointing in Brax see: google/brax#299 |
in |
Hey @btaba, I am a bit confused when trying to do the same. Can you please elaborate the whole process if you don't mind? I understand the part where you said about saving and loading a checkpoint but then how to use viewer to show the state.
Also isn't saving and loading is already there in the tutorial.py for MJX, should I just use policy_params_fn instead of params_fn in the same code while getting make_inference_fn and params. |
Excuse me. Have you completed the development? where can I see the program if it is done. |
If you're doing RL using depth-images, MJX rendering via mjx.ray can be useful; see my response here. This MJX implementation of a depth-camera can render up to millions of FPS on a very simple setup - not sure how the ray tracing scales with geom count. |
Hi,
I'm a maintainer of Gymnasium & Gymnasium-Robotics, and I'm trying to use
MuJoCo-MJX
for "prototypingMJX
-based RL environments in Gymnasium".Here is the model tested: Gymnasium/HalfCheetah (though it should be not relevant for this question)
The
MJX
tutorial in the section "Define a render utility function", you create a copy of themjx_data
intod
(type(d)==mujoco.mj_data
) and using it with baseMuJoCo
's render function to render thergb_array
.Didn't
brax
have its own render utilities?Does
MJX
plan to add its own render functions, or it is the plan to keep usingMuJoCo
's render functions.Thanks!
The text was updated successfully, but these errors were encountered: