-
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
Add support for setting options
at reset with VecEnv
#1606
Conversation
options
argument to VecEnv.reset()
options
argument to VecEnv.reset()options
argument to VecEnv.reset()
I did not change the stable-baselines3/stable_baselines3/common/env_checker.py Lines 375 to 404 in d68ff2e
Do we want to check if the signature also contains |
Hello, |
I don't think that should be needed.
No, compared to |
As #1486 augment
Alright, In the context of stable-baselines3 the I'll be back by the end off August:) |
quick +1 for this feature. Also can we make it easier to extend step() also with options/kwargs? |
options
argument to VecEnv.reset()options
at reset with VecEnv
Description
Hi, I suggest the following code to solve #1523
Basically, it is inspired by #1486 logic for seeds.
Note, only one option dictionary is duplicated to be passed to all VecEnv environments when
done
ortruncated
is reached.Change Details
I followed the logic from #1486 where the options dictionary are stored in a list whose size is the number of environments in the
VecEnv
.However, I had to update the
make_vec_env
function signature with anoptions
argument.I updated all the tests signatures for
reset
and added onewrong_reset
method.About pytest
However, running
make pytest
the following errors triggered:In fact my Ubuntu 22 laptop with i9 proc was in mode eco, so the computational power was limited.
With standard power the fps test passed. Should this test be made easier?
However, I still have a rendering problem ? Note my nvidia card is deactivated.
Motivation and Context
closes #1523
Types of changes
Checklist
make format
(required)make check-codestyle
andmake lint
(required)make pytest
andmake type
both pass. (required)make doc
(required)Note: You can run most of the checks using
make commit-checks
.Note: we are using a maximum length of 127 characters per line