-
Notifications
You must be signed in to change notification settings - Fork 524
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
Can't pickle local object 'TrainAugmentation.__init__.<locals>. #19
Comments
ooooooh, i know the reason, just because the OS is Windows, In Windows, multiprocessing uses pickle to transfer objects between processes. Socket objects can not be pickled !!! It's ok in linux~ |
@ZLeopard Hey, bro! Where and what should I change codes if I want to run on windows platform, I'd like to know your solutions or you just run on linux |
@zhouyuangan no, i have no idea about using the code in windows, you may search on the StackOverFlow, some like replace the pickle lib using another lib |
Hi, have you found the answer how to run the code in Windows, without this error? |
anybody solved this problem? |
It looks some problem with multi-processing, how about setting the num_workers = 0. |
I'm using Windows10 and recent pytorch. I was able to get things to run by : (2b) for safety, I also added:
in train_ssd, see https://discuss.pytorch.org/t/if-name-main-for-window10/19377 Using num_workers=0: [~77s/100 steps] Using num_workers=4: [~25s/100 steps] So, ~3x speedup (in both cases, I'm reading files from an SSD drive). I made a few other changes, but I think they are inconsequential. Let me know if this doesn't work for you, and I can check for other possible changes. |
can u find other solution ? It doesn't seem to work on my laptop |
have you meet this problem related to the "pickle"?? thank you for the code, firstly~~
The text was updated successfully, but these errors were encountered: