This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
Multiprocessing is broken: TypeError: cannot pickle '_thread.RLock' object
#1
Labels
bug
Something isn't working
Bug
When trying to run detections with
n_cores > 1
and disabling GPU, the runner uses a multiprocessing approach. Currently there is a bug that produces the error:TypeError: cannot pickle '_thread.RLock' object
Traceback
Details
From a quick search it seems that it may be related to a new behaviour introduced somewhere in Python
3.8.0
or above, but not sure.Workaround
Using multithreading with
ThreadPool
insted of multiprocessing withPool
, appears to resolve the issue but I am not sure if that is a good approach.The text was updated successfully, but these errors were encountered: