ShaneFlandermeyer / tdmpc2-jax

Jax/Flax Implementation of TD-MPC2
33 stars 2 forks source link

Environment Setup #2

Closed Ozzey closed 1 month ago

Ozzey commented 1 month ago

Hello! Amazing work with the jax implementation and vectorization. I wanted to ask could you please give me some pointers on how to use this implementation for custom gym/ mujoco-gym env? Assuming it's continuous control with a simple vector for the state.

ShaneFlandermeyer commented 1 month ago

Using custom gym envs is pretty straightforward with the current setup! All you need to do is register the env (see here), then change the env_id field in the config file to whatever ID you use in gym.register().

Ozzey commented 1 month ago

Using custom gym envs is pretty straightforward with the current setup! All you need to do is register the env (see here), then change the env_id field in the config file to whatever ID you use in gym.register().

Great! Thank you for the response. Closing the issue.