mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-27 12:30:55 +02:00
move variables
This commit is contained in:
@@ -158,11 +158,11 @@ def analyse_image(image_path : str) -> bool:
|
||||
def analyse_video(video_path : str, trim_frame_start : int, trim_frame_end : int) -> bool:
|
||||
video_fps = detect_video_fps(video_path)
|
||||
frame_range = range(trim_frame_start, trim_frame_end)
|
||||
video_reader = video_manager.get_reader(video_path, 'analyse_video')
|
||||
video_manager.seek_video_reader(video_reader, trim_frame_start)
|
||||
rate = 0.0
|
||||
total = 0
|
||||
counter = 0
|
||||
video_reader = video_manager.get_reader(video_path, 'analyse_video')
|
||||
video_manager.seek_video_reader(video_reader, trim_frame_start)
|
||||
|
||||
with tqdm(total = len(frame_range), desc = translator.get('analysing'), unit = 'frame', ascii = ' =', disable = state_manager.get_item('log_level') in [ 'warn', 'error' ]) as progress:
|
||||
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ def pre_check() -> bool:
|
||||
def common_pre_check() -> bool:
|
||||
content_analyser_content = inspect.getsource(content_analyser).encode()
|
||||
|
||||
return hash_helper.create_hash(content_analyser_content) == '5f04e67c'
|
||||
return hash_helper.create_hash(content_analyser_content) == '065886fc'
|
||||
|
||||
|
||||
def processors_pre_check() -> bool:
|
||||
|
||||
Reference in New Issue
Block a user