Fix frames vs. cpu cores issue

This commit is contained in:
henryruhs 2023-06-02 16:40:08 +02:00
parent dd5a321c50
commit b37b998326

View File

@ -102,7 +102,7 @@ def start_processing():
if args['gpu'] or n < 2:
process_video(args['source_img'], args["frame_paths"])
return
# multi thread of frames to cpu cores ratio is 2
# multi thread if video frames to cpu cores ratio is 2
if n > 2:
processes = []
for i in range(0, len(frame_paths), n):