yu4u / noise2noise

An unofficial and partial Keras implementation of "Noise2Noise: Learning Image Restoration without Clean Data"
MIT License
1.07k stars 237 forks source link

AttributeError: Can't pickle local object #12

Closed JaapSuter closed 5 years ago

JaapSuter commented 5 years ago

Hello,

In case anybody else is trying this repo on a Windows machine, you're likely to get errors along the lines of: AttributeError: Can't pickle local object. I don't have much Python experience, and I tried a variety of the suggested solutions via Google, but in the end the solution was as simple as switching from multiprocessing to multithreading on Windows (due to its different fork model). You can do this simply by setting use_multiprocessing=False on line 95 in train.py.

Yusuke, thank you so much for sharing this wonderful repo. I'm a computer graphics programmer by trade, and I've been meaning to get my feet wet with machine learning for a while now, and your repo was the perfect gentle introduction, with applications directly to my job. Much appreciated!

Thanks,

Jaap Suter

JaapSuter commented 5 years ago

Closing this issue as it's resolved, and more of a tip that I wanted to share.

JaapSuter commented 5 years ago

Duh, just noticed this issue had already been reported twice. My apologies.