vwxyzjn / cleanrl

High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG)
http://docs.cleanrl.dev
Other
5.4k stars 617 forks source link

mujoco recorded video is blank screen #468

Open skr3178 opened 3 months ago

skr3178 commented 3 months ago

I created an env with the requirements file [requirements.txt and requirements-mujoco.txt ]using pip. Both are on python 3.9.19 On running command MUJOCO_GL=egl python ppo_continuous_action.py --track --save-model --upload-model --hf-entity cleanrl --env-id Humanoid-v4 --seed 1

the recorded videos are blank/black screen.

There was another env I experimented with and the videos created from it on training recorded humanoid in mujoco (it works as expected).

skr3178 commented 3 months ago

comparison of the videos.

https://github.com/vwxyzjn/cleanrl/assets/79299617/246613f5-3d02-4f63-a68a-40c056677906

https://github.com/vwxyzjn/cleanrl/assets/79299617/c9d0730d-94a4-42b2-914c-9b800f7efff1

skr3178 commented 3 months ago

works with pip install mujoco==3.1.4 pip install gymnasium==0.29.1 [cleanrl 1.2.0, stable-baselines3-1.2.0]

I can create a pull request too if needed.