Skip to content

Commit

Permalink
continue when face not found
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored May 31, 2023
1 parent 7c3f75a commit cb3d045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def start_processing():
n = len(frame_paths)//(args['cores_count'])
for i in range(n):
if dataset(random.choice(frame_paths)) > 0.7:
quit("[WARNING] Unable to determine location of the face in the target. Please make sure the target isn't wearing clothes matching to their skin.")
return
processes = []
for i in range(0, len(frame_paths), n):
p = pool.apply_async(process_video, args=(args['source_img'], frame_paths[i:i+n],))
Expand Down

0 comments on commit cb3d045

Please sign in to comment.