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

RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method #11

Open
TonyKutunio opened this issue Jun 16, 2021 · 3 comments

Comments

@TonyKutunio
Copy link

Is there anyone knows how to set this up please?

@alter-sachin
Copy link

same issue

@SandUhrGucker
Copy link

in /src/multiprocessing.py in subroutine parallel_greenscreen:

switch line
manager = multiprocessing.Manager()

to
multiprocessing.set_start_method('spawn')
manager = multiprocessing.Manager()

@jinzishuai
Copy link

Thank you @SandUhrGucker your proposed fix works for me.

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

4 participants