Skip to content

Commit

Permalink
fix target_path undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored May 31, 2023
1 parent a831700 commit ef28e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def start():
print("\n[WARNING] Please select a video/image to swap face in.")
return
if not args['output_file']:
args['output_file'] = rreplace(args['target_path'], "/", "/swapped-", 1) if "/" in target_path else "swapped-" + target_path
target_path = args['target_path']
args['output_file'] = rreplace(target_path, "/", "/swapped-", 1) if "/" in target_path else "swapped-" + target_path
global pool
pool = mp.Pool(args['cores_count'])
target_path = args['target_path']
Expand Down

0 comments on commit ef28e3a

Please sign in to comment.