Open elaidlaw opened 4 years ago
Interesting find! Given that it works when you directly call it, I would assume this has to do with the mp.set_start_method("spawn", force=True)
call we do beforehand to work around https://github.com/opencv/opencv/issues/5150. The best way to verify this is by replacing pool.apply_async(
with pool.apply(
and seeing what errors are produced (since the former silences errors).
When I try to start the UI with run.py, the script hangs when it tries to generate the color_levels. Through some investigation, I found that it was hanging in resize_frames(). I'm not sure exactly why the multiprocessing doesn't work, but changing the function to directly resize the images fixed the issue for me. Here's how I altered resize frames:
I'm on Windows 10, using Docker with the WSL 2 configuration. I'm sure this function works on other setups, but in case anyone else sees this issue, this might help.