Skip to content

Commit

Permalink
Update videoswap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NNNNAI committed Jul 2, 2021
1 parent a137809 commit 1016eef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/videoswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def video_swap(video_path, id_vetor, swap_model, detect_model, save_path, temp_r
else:
if not os.path.exists(temp_results_dir):
os.mkdir(temp_results_dir)
frame = logoclass.apply_frames(frame.astype(np.uint8))
frame = frame.astype(np.uint8)
if not no_simswaplogo:
frame = logoclass.apply_frames(frame)
cv2.imwrite(os.path.join(temp_results_dir, 'frame_{:0>7d}.jpg'.format(frame_index)), frame)
else:
break
Expand Down

0 comments on commit 1016eef

Please sign in to comment.