-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: VecVideoRecorder overwrites previous video at each save #2061
Comments
Hello, Edit: defining video name as a property should be an easy fix |
Sure thing. I'll get a PR submitted in the next few days. I'll also investigate whether this is indeed related to #2055 and let you know what I find. |
@curtiscjohnson I found some time today, could you give #2063 a try? |
Sounds good! #2063 does indeed fix the issue. Using the same MWE as above, the output now matches the expected behavior. MoviePy - Building video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4.
MoviePy - Writing video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4
MoviePy - Done !
MoviePy - video ready /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4
Saving video to /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4
MoviePy - Building video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4.
MoviePy - Writing video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4
MoviePy - Done !
MoviePy - video ready /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-0-to-step-100.mp4
Saving video to /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-1024-to-step-1124.mp4
MoviePy - Building video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-1024-to-step-1124.mp4.
MoviePy - Writing video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-1024-to-step-1124.mp4
MoviePy - Done !
MoviePy - video ready /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-1024-to-step-1124.mp4
MoviePy - Building video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-2048-to-step-2148.mp4.
MoviePy - Writing video /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-2048-to-step-2148.mp4
MoviePy - Done !
MoviePy - video ready /home/curtis/testing-sb3-temp/stable-baselines3/videos/agent-CartPole-v1-step-2048-to-step-2148.mp4
All video files saved in videos: ['videos/agent-CartPole-v1-step-1024-to-step-1124.mp4', 'videos/agent-CartPole-v1-step-0-to-step-100.mp4'] Regarding the W&B issue in #2055, still the same issue as mentioned in here. So I agree with your comment. |
🐛 Bug
Due to changes that happened with commit #1837 in
vec_video_recorder.py
, thevideo_name
is no longer updated at each recording, which leads to the previous video being overwritten asself.video_name
every time.To Reproduce
Relevant log output / Error message
System Info
Checklist
The text was updated successfully, but these errors were encountered: