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

关于dataloader僵尸进程的问题 #35

Open
276856952 opened this issue Feb 10, 2020 · 0 comments
Open

关于dataloader僵尸进程的问题 #35

276856952 opened this issue Feb 10, 2020 · 0 comments

Comments

@276856952
Copy link

只有把dataloader里的num_workers改成0,程序才能跑起来,不然就会死锁在
for iteration, batch in enumerate(training_data_loader, 1)这一句,网上给的方法是改成0,但会导致训练变慢,请问有没有其他的办法呢?谢谢啦
网上还有的说是torch和opencv冲突了,但是我并没有在dataloader里找到用了cv2的地方,而且加了cv2.setNumThreads(0)
cv2.ocl.setUseOpenCL(False)
这两句也没有变化,还是卡在那一句。

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