You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
只有把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)
这两句也没有变化,还是卡在那一句。
The text was updated successfully, but these errors were encountered:
只有把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)
这两句也没有变化,还是卡在那一句。
The text was updated successfully, but these errors were encountered: