Open KarolisRam opened 2 years ago
@frt03 , could you take a look at this?
fwiw, environments in the experimental directory have no stability guarantees :)
I am on paternity leave so there will be delays. I can take a look sometime. Or @frt03
fwiw, environments in the experimental directory have no stability guarantees :)
I'm trying to add a similar env to biggym and I wanted to use jump__cheetah
as a template, but now I'm not sure if it's done correctly.
Hi @KarolisRam,
Temporally, you may change this line as
def is_env_desc(env_desc: Any):
"""Check if it is appropriate env_desc object."""
return isinstance(env_desc, dict) or callable(env_desc) and (not inspect.isclass(env_desc))
and use biggym.create_fn
instead of composer.create_fn
. We may fix this in the future release.
Easiest way to demonstrate it is to go to https://colab.research.google.com/github/google/brax/blob/main/notebooks/biggym/biggym_rl.ipynb and do these two changes:
env_name = 'jump__cheetah'
andenv_params = {}
This will throw an error:All other biggym envs have mappings as
ENV_DESCS
and work fine, while jump__cheetah points to a class: