huggingface / huggingface_sb3

Additional code for Stable-baselines3 to load and upload models from the Hub.
77 stars 23 forks source link

generate_replay created a video.mp4 file locally #14

Closed osanseviero closed 2 years ago

osanseviero commented 2 years ago

This code snippet

env = VecVideoRecorder(
        eval_env,
        "./",  # Temporary video folder
        record_video_trigger=lambda x: x == 0,
        video_length=video_length,
        name_prefix="",
    )

generated a video file wherever the user is. In the temporary video folder, you can use tempfile.TemporaryDirectory() to automatically create a directory that will be deleted afterwards

simoninithomas commented 2 years ago

I can close this issue ? It was solved with your #15

osanseviero commented 2 years ago

Yes!