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

调用multiprocess出错 #20

Open
changsha2999 opened this issue Apr 10, 2024 · 1 comment
Open

调用multiprocess出错 #20

changsha2999 opened this issue Apr 10, 2024 · 1 comment

Comments

@changsha2999
Copy link

File "D:@yongzhao@pyproject\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1049, in init
w.start()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\multiprocessing\context.py", line 327, in _Popen
return Popen(process_obj)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\multiprocessing\popen_spawn_win32.py", line 45, in init
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\multiprocessing\spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main

@changsha2999 changsha2999 changed the title 调用目录提process出错 调用multiprocess出错 Apr 10, 2024
@yhcc
Copy link
Owner

yhcc commented May 20, 2024

num_worker设置为0试试看,可能是windows上的多进程问题

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