Using Brax 0.9.1 a Jax 0.4.10
From GymWrapper, env.reset()
Traceback (most recent call last):
File ".../brax_render_issue.py", line 19, in
image = env.render(mode='rgb_array')
File ".../brax/envs/wrappers/gym.py", line 85, in render
return image.render_array(sys, state.state, 256, 256)
AttributeError: 'State' object has no attribute 'state'
From GymWrapper, env.reset() and action
Traceback (most recent call last):
File ".../brax_render_issue.py", line 34, in
image = env.render(mode='rgb_array')
File ".../brax/envs/wrappers/gym.py", line 85, in render
return image.render_array(sys, state.state, 256, 256)
AttributeError: 'State' object has no attribute 'state'
From brax env
pixel values: [255, 255]
So rendering with the GymWrapper doesn't seem to work with-or-without a simulation step, and calling the underlying render function returns a white image.
I ran this across all the envs and the GymWrapper issue was consistent, but the white image issue is specific to inverted_pendulum and the other envs rendered correctly. I did not check the dm_env wrapper.
Hi,
I was excited to try out the new rendering added recently but it doesn't seem to work in a few cases.
I'm using MacOS 13.4, Python 3.9.6, Brax 0.9.1 and Jax 0.4.10.
Running
the output is
So rendering with the GymWrapper doesn't seem to work with-or-without a simulation step, and calling the underlying render function returns a white image.
I ran this across all the envs and the GymWrapper issue was consistent, but the white image issue is specific to inverted_pendulum and the other envs rendered correctly. I did not check the dm_env wrapper.