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

Multiprocessing doesn't work right now #1

Open
Nikhilesh-B opened this issue Jul 3, 2023 · 0 comments
Open

Multiprocessing doesn't work right now #1

Nikhilesh-B opened this issue Jul 3, 2023 · 0 comments

Comments

@Nikhilesh-B
Copy link
Collaborator

if you want to harness the power of multiprocessing we have to debug what happens if self.multiprocess is set to true.

Some potential fixes include:

1. could this have anything to do with the device at all????
2. few things to try: 1. us the sub proc vec env with one if self.num_parralel_envs = 1,
3. simple script to test out a simple env, and test out subprocvecenv class
4. simple script to test out a simple env, and test out subprocvecenv class
5. go to github to stable baselines => got to stable baselines and search in their issues you might.
6. write a script to reproduce the error create a simple script that recreates the error.

def create_new_image_envs(self): if self.multiprocess: self.envs = VecPyTorch( SubprocVecEnv([self.make_env(self.seed + i) for i in range(self.num_parallel_envs)], 'fork'), self.device) else: self.envs = VecPyTorch(DummyVecEnv([self.make_env(self.seed + i) for i in range(self.num_parallel_envs)]), self.device)

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

1 participant