You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you also reproduce the problem? Or is it only an issue with my setup? Thank you very much for the help and for this nice library.
To Reproduce
importgymfromstable_baselines3.common.vec_envimportVecVideoRecorder, DummyVecEnvenv_id="CartPole-v1"video_folder="logs/videos/"video_length=100env=DummyVecEnv([lambda: gym.make(env_id)])
obs=env.reset()
# Record the video starting at the first stepenv=VecVideoRecorder(
env,
video_folder,
record_video_trigger=lambdax: x==0,
video_length=video_length,
name_prefix="random-agent-{}".format(env_id),
)
env.reset()
for_inrange(video_length+1):
action= [env.action_space.sample()]
obs, _, _, _=env.step(action)
# Save the videoenv.close()
Expected behavior
The video should show the agent. It is empty instead.
馃悰 Bug
Hello.
Following this example from the documentation, a video file is generated, but it remains empty.
Can you also reproduce the problem? Or is it only an issue with my setup? Thank you very much for the help and for this nice library.
To Reproduce
Expected behavior
The video should show the agent. It is empty instead.
###聽System Info
The text was updated successfully, but these errors were encountered: