Skip to content
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

[Question] An easy recipe for DataCollector on Vectorized Envs? #174

Open
jamartinh opened this issue Dec 7, 2023 · 1 comment
Open

Comments

@jamartinh
Copy link

Question

Hello, the majority of data collections from simulated environments comes from parallel data collectors such as VecEnvs and methods that return either a step data with a batch dimension or even at the end of the collector a list like collection of episode data.

By now the simpler scenario is to sample using VecEnv so is there any simple recipe for adapting the current DataCollector for VecEnv format?

@younik
Copy link
Member

younik commented Dec 7, 2023

Hello @jamartinh, thanks for the question
We indeed plan to add support for VecEnv in DataCollector (any help welcome :D)

If you need to use DataCollector now with a VectorEnv, you will need some customize code adjustment. Probably the esier way is to deal with VectorEnv as a normal env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants