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

when I run train.py, print there error message. Can you help to solve the issue? Thank you ! #72

Open
yuanqs opened this issue Jul 16, 2021 · 1 comment

Comments

@yuanqs
Copy link

yuanqs commented Jul 16, 2021

Every epoch need 404 iterations
Note that dataloader may hang with too much nworkers.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\hcytech\anaconda3\envs\Python38_yolos\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\hcytech\anaconda3\envs\Python38_yolos\lib\multiprocessing\spawn.py", line 125, in _main
prepare(preparation_data)
File "C:\Users\hcytech\anaconda3\envs\Python38_yolos\lib\multiprocessing\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\hcytech\anaconda3\envs\Python38_yolos\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "C:\Users\hcytech\anaconda3\envs\Python38_yolos\lib\runpy.py", line 265, in run_path

@layumi
Copy link
Contributor

layumi commented Jul 22, 2021

For windows user, you need to set the workers in data loader as 0.
It is due to the pytorch multi-processing tool, which is not optimized for 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