huggingface/deep-rl-class

[HANDS-ON BUG] Unit 6: Issue with push_to_hub

arminmrm opened this issue · 4 comments

In Unit 6, I trained and evaluated the A2C model for the AntBulletEnv and everything looked good. However, when I try to push my model to the hub I get the following error: AssertionError: The render_mode must be 'rgb_array', not None

Here is the link for my notebook. I appreciate it if you could help.

Same problem here! =/

+1

Experienced the same issue, but I can work it around by add a line of code before push_to_hub:
eval_env.render_mode='rgb_array'

Hope it help.

Hey there 👋 we updated the notebook to install sb3 == 1.8.0 since it works with gym. The problem comes from sb3 installed in the notebook is too recent and work only with gymnasium