Fix frames vs. cpu cores issue
This commit is contained in:
parent
dd5a321c50
commit
b37b998326
@ -102,7 +102,7 @@ def start_processing():
|
|||||||
if args['gpu'] or n < 2:
|
if args['gpu'] or n < 2:
|
||||||
process_video(args['source_img'], args["frame_paths"])
|
process_video(args['source_img'], args["frame_paths"])
|
||||||
return
|
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:
|
if n > 2:
|
||||||
processes = []
|
processes = []
|
||||||
for i in range(0, len(frame_paths), n):
|
for i in range(0, len(frame_paths), n):
|
||||||
|
Loading…
Reference in New Issue
Block a user