-
Notifications
You must be signed in to change notification settings - Fork 532
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 cannot use multithreading on windows? #55
Comments
You can passed '--num_workers 0' as a command line argument. |
Thanks for replying, using single thread is very slow, I just want to use multithreading, how do I need to modify it? |
in order to use multithreading in windows you should try changing the lambda transformation into a function (callable class, to be more specific). |
Hi, i'm having the same problem and would like to use multithreading. Can someone here show an example of how to implement these lines: class NormalizesStd(object): def init(self, std): self.std = np.array(std, dtype=np.float32) def call(self, image, boxes=None, labels=None): image = image.astype(np.float32) image /= self.std return image.astype(np.float32), boxes, labels Thank you very much! |
Hi,Thank you very much for sharing。
I have a problem. When I run the code on the Windows10 system, I always get an error when setting ‘num_workers’ to a number >0.
The error location is on line 115:
The error message is:
Can you give me some solutions or suggestions?
Thank you!
The text was updated successfully, but these errors were encountered: