[HANDS-ON BUG] Unit 6: Issue with push_to_hub
arminmrm opened this issue · 4 comments
arminmrm commented
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.
taleslimaf commented
Same problem here! =/
Arindam75 commented
+1
imzhangxian commented
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.
simoninithomas commented
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