Even if you are not close to reaching Facebook scale, you could use Python’s asyncio as a more predictable threading mechanism to run many things concurrently. A thread scheduler could interrupt in between des
python run.py [options] -h, --help show this help message and exit -s SOURCE_PATH, --source SOURCE_PATH select a source image -t TARGET_PATH, --target TARGET_PATH select a target image or video -o OUTPUT_PATH, --output OUTPUT_PATH specify the output file or directory --frame-proce...