You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using alongside the keras ImageDataGenerator with multithreading=True, the process hangs on recv(). Switching the number of workers to 0 (i.e. no multithread) works as expected.
I encountered the similar problem (Python 3.6, imgaug 0.2.5, Ubuntu 16.04).
After some investigation, I found that cv2.resize() called in the imgaug.augumenters.Scale() hangs.
It seems OpenCV has some multithreading issue.
In my environment, calling cv2.setNumThreads(0) fixes the problem (though in this case obviously OpenCV use only one thread..)
When using alongside the keras
ImageDataGenerator
withmultithreading=True
, the process hangs onrecv()
. Switching the number of workers to 0 (i.e. no multithread) works as expected.I saw the last merged PR #126 tacking in the same direction, and have confirmed that the installed version has it, but problem persists.
The text was updated successfully, but these errors were encountered: