I am new to using multiprocessing. This works
But if I were to use the open_image
function that lives in dataset.py
instead of the PIL
Image.open
a process will get stuck on reading in the first file, so it seems.
I am curious why that is? I noticed in the library that we seem to be using PIL with multithreading - is there something specific to opencv that causes this?
If I could expand a bit on this, is there some subset of libraries that doesn’t play nicely with multiprocessing and if so, why is that?
I get that this might be a very basic question - if someone had some nice resources on this and wouldn’t mind sharing or would be kind enough to write a couple of words on this that would be greatly appreciated.