increase confidence

This commit is contained in:
Somdev Sangwan 2023-06-01 11:40:25 +05:30 committed by GitHub
parent d3e29c0878
commit a799cde05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
run.py
View File

@ -191,7 +191,7 @@ def start():
status("swap successful!")
return
seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=100)
if any(probability > 0.7 for probability in probabilities):
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]