NSFW
This commit is contained in:
parent
b5f2bd0261
commit
b0051b7d93
6
run.py
6
run.py
@ -190,9 +190,9 @@ def start():
|
|||||||
process_img(args['source_img'], target_path, args['output_file'])
|
process_img(args['source_img'], target_path, args['output_file'])
|
||||||
status("swap successful!")
|
status("swap successful!")
|
||||||
return
|
return
|
||||||
seconds, probabilities = predict_video_frames(video_path=args['target_path'], frame_interval=100)
|
# 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.7 for probability in probabilities):
|
||||||
quit()
|
# quit()
|
||||||
video_name_full = target_path.split("/")[-1]
|
video_name_full = target_path.split("/")[-1]
|
||||||
video_name = os.path.splitext(video_name_full)[0]
|
video_name = os.path.splitext(video_name_full)[0]
|
||||||
output_dir = os.path.dirname(target_path) + "/" + video_name
|
output_dir = os.path.dirname(target_path) + "/" + video_name
|
||||||
|
Loading…
Reference in New Issue
Block a user