-
Notifications
You must be signed in to change notification settings - Fork 498
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]: Kwargs in record_video.py
not preserved by SB3 Vector Environment wrappers
#399
Comments
record_video.py
due to VecNormalize in create_test_env
getting rid of render_mode
record_video.py
not preserved by environment wrappers
record_video.py
not preserved by environment wrappersrecord_video.py
not preserved by SB3 environment wrappers
record_video.py
not preserved by SB3 environment wrappersrecord_video.py
not preserved by SB3 Vector Environment wrappers
Hello, I guess your issue is a duplicate of #379 (see dicussion in DLR-RM/stable-baselines3#1525) I thought the bug was fixed but it is still there apparently... and yes A fix would be to do |
I've pushed a fix here: https://github.com/DLR-RM/stable-baselines3/pull/1671/files |
Great, thanks so much! Hopefully it gets merged to master soon :) |
Released on master branch =) |
🐛 Bug
The
render_mode
inrecord_video.py
is not preserved aftercreate_test_env
is called here:rl-baselines3-zoo/rl_zoo3/record_video.py
Lines 96 to 105 in 2d5db11
I have traced it to exactly this line in
utils.py
, where theVecNormalize
wrapper of Stable-Baselines3 seems to set it back toNone
:rl-baselines3-zoo/rl_zoo3/utils.py
Line 284 in 2d5db11
My temporary solution was to set
env.render_mode = 'rgb_array'
back inrecord_video.py
right aftercreate_test_env
:rl-baselines3-zoo/rl_zoo3/record_video.py
Line 106 in 2d5db11
To Reproduce
Relevant log output / Error message
System Info
Library was installed via
pip
.Checklist
The text was updated successfully, but these errors were encountered: