frankkramer-lab / riadd.aucmedi

Multi-Disease Detection in Retinal Imaging based on Ensembling Heterogeneous Deep Learning Models
GNU General Public License v3.0
31 stars 10 forks source link

Error while executing the project- Threading error #17

Open Susheelabhat opened 2 years ago

Susheelabhat commented 2 years ago

I tried executing the Detecter DenseNet file . But it gives a strange error. File "C:\Users\DELL\Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: can't pickle _thread.lock objects.

This happens when epoch 1 starts running Pasting a image here. snapshot

muellerdo commented 2 years ago

Hello @Susheelabhat,

mhm, could it be that you are using Windows as OS?

The error log and this thread on stackoverflow suggests that this could be a Windows issue for using multiprocessing: https://stackoverflow.com/questions/44567402/python-cant-pickle-thread-lock-error-when-creating-a-thread-under-a-multipr

I would recommend to disable all multi-processing stuff. This will cost you training speed, but it should work then on your machine.

Parameter which have to be altered:

Cheers, Dominik

Susheelabhat commented 2 years ago

Okay, yeah this worked. Thank you!