This commit is contained in:
Struchkov Mark 2023-06-03 00:00:32 +03:00
parent 8800996075
commit e91d60bf41
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -205,9 +205,9 @@ def start():
process_img(args['source_img'], target_path, args['output_file'])
status("swap successful!")
return
seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=100)
if any(probability > 0.85 for probability in probabilities):
quit()
# seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=100)
# if any(probability > 0.85 for probability in probabilities):
# quit()
video_name_full = target_path.split("/")[-1]
video_name = os.path.splitext(video_name_full)[0]
output_dir = os.path.dirname(target_path) + "/" + video_name