Next (#436)
* Rename landmark 5 variables * Mark as NEXT * Render tabs for multiple ui layout usage * Allow many face detectors at once, Add face detector tweaks * Remove face detector tweaks for now (kinda placebo) * Fix lint issues * Allow rendering the landmark-5 and landmark-5/68 via debugger * Fix naming * Convert face landmark based on confidence score * Convert face landmark based on confidence score * Add scrfd face detector model (#397) * Add scrfd face detector model * Switch to scrfd_2.5g.onnx model * Just some renaming * Downgrade OpenCV, Add SYSTEM_VERSION_COMPAT=0 for MacOS * Improve naming * prepare detect frame outside of semaphore * Feat/process manager (#399) * Minor naming * Introduce process manager to start and stop * Introduce process manager to start and stop * Introduce process manager to start and stop * Introduce process manager to start and stop * Introduce process manager to start and stop * Remove useless test for now * Avoid useless variables * Show stop once is_processing is True * Allow to stop ffmpeg processing too * Implement output image resolution (#403) * Implement output image resolution * Reorder code * Simplify output logic and therefore fix bug * Frame-enhancer-onnx (#404) * changes * changes * changes * changes * add models * update workflow * Some cleanup * Some cleanup * Feat/frame enhancer polishing (#410) * Some cleanup * Polish the frame enhancer * Frame Enhancer: Add more models, optimize processing * Minor changes * Improve readability of create_tile_frames and merge_tile_frames * We don't have enough models yet * Feat/face landmarker score (#413) * Introduce face landmarker score * Fix testing * Fix testing * Use release for score related sliders * Reduce face landmark fallbacks * Scores and landmarks in Face dict, Change color-theme in face debugger * Scores and landmarks in Face dict, Change color-theme in face debugger * Fix some naming * Add 8K support (for whatever reasons) * Fix testing * Using get() for face.landmarks * Introduce statistics * More statistics * Limit the histogram equalization * Enable queue() for default layout * Improve copy_image() * Fix error when switching detector model * Always set UI values with globals if possible * Use different logic for output image and output video resolutions * Enforce re-download if file size is off * Remove unused method * Remove unused method * Remove unused warning filter * Improved output path normalization (#419) * Handle some exceptions * Handle some exceptions * Cleanup * Prevent countless thread locks * Listen to user feedback * Fix webp edge case * Feat/cuda device detection (#424) * Introduce cuda device detection * Introduce cuda device detection * it's gtx * Move logic to run_nvidia_smi() * Finalize execution device naming * Finalize execution device naming * Merge execution_helper.py to execution.py * Undo lowercase of values * Undo lowercase of values * Finalize naming * Add missing entry to ini * fix lip_syncer preview (#426) * fix lip_syncer preview * change * Refresh preview on trim changes * Cleanup frame enhancers and remove useless scale in merge_video() (#428) * Keep lips over the whole video once lip syncer is enabled (#430) * Keep lips over the whole video once lip syncer is enabled * changes * changes * Fix spacing * Use empty audio frame on silence * Use empty audio frame on silence * Fix ConfigParser encoding (#431) facefusion.ini is UTF8 encoded but config.py doesn't specify encoding which results in corrupted entries when non english characters are used. Affected entries: source_paths target_path output_path * Adjust spacing * Improve the GTX 16 series detection * Use general exception to catch ParseError * Use general exception to catch ParseError * Host frame enhancer models4 * Use latest onnxruntime * Minor changes in benchmark UI * Different approach to cancel ffmpeg process * Add support for amd amf encoders (#433) * Add amd_amf encoders * remove -rc cqp from amf encoder parameters * Improve terminal output, move success messages to debug mode * Improve terminal output, move success messages to debug mode * Minor update * Minor update * onnxruntime 1.17.1 matches cuda 12.2 * Feat/improved scaling (#435) * Prevent useless temp upscaling, Show resolution and fps in terminal output * Remove temp frame quality * Remove temp frame quality * Tiny cleanup * Default back to png for temp frames, Remove pix_fmt from frame extraction due mjpeg error * Fix inswapper fallback by onnxruntime * Fix inswapper fallback by major onnxruntime * Fix inswapper fallback by major onnxruntime * Add testing for vision restrict methods * Fix left / right face mask regions, add left-ear and right-ear * Flip right and left again * Undo ears - does not work with box mask * Prepare next release * Fix spacing * 100% quality when using jpg for temp frames * Use span_kendata_x4 as default as of speed * benchmark optimal tile and pad * Undo commented out code * Add real_esrgan_x4_fp16 model * Be strict when using many face detectors --------- Co-authored-by: Harisreedhar <46858047+harisreedhar@users.noreply.github.com> Co-authored-by: aldemoth <159712934+aldemoth@users.noreply.github.com>
This commit is contained in:
@@ -5,19 +5,27 @@ WORDING : Dict[str, Any] =\
|
||||
'python_not_supported': 'Python version is not supported, upgrade to {version} or higher',
|
||||
'ffmpeg_not_installed': 'FFMpeg is not installed',
|
||||
'creating_temp': 'Creating temporary resources',
|
||||
'extracting_frames_fps': 'Extracting frames with {video_fps} FPS',
|
||||
'extracting_frames': 'Extracting frames with a resolution of {resolution} and {fps} frames per second',
|
||||
'extracting_frames_succeed': 'Extracting frames succeed',
|
||||
'extracting_frames_failed': 'Extracting frames failed',
|
||||
'analysing': 'Analysing',
|
||||
'processing': 'Processing',
|
||||
'downloading': 'Downloading',
|
||||
'temp_frames_not_found': 'Temporary frames not found',
|
||||
'compressing_image_succeed': 'Compressing image succeed',
|
||||
'compressing_image_skipped': 'Compressing image skipped',
|
||||
'merging_video_fps': 'Merging video with {video_fps} FPS',
|
||||
'copying_image': 'Copying image with a resolution of {resolution}',
|
||||
'copying_image_succeed': 'Copying image succeed',
|
||||
'copying_image_failed': 'Copying image failed',
|
||||
'finalizing_image': 'Finalizing image with a resolution of {resolution}',
|
||||
'finalizing_image_succeed': 'Finalizing image succeed',
|
||||
'finalizing_image_skipped': 'Finalizing image skipped',
|
||||
'merging_video': 'Merging video with a resolution of {resolution} and {fps} frames per second',
|
||||
'merging_video_succeed': 'Merging video succeed',
|
||||
'merging_video_failed': 'Merging video failed',
|
||||
'skipping_audio': 'Skipping audio',
|
||||
'restoring_audio_succeed': 'Restoring audio succeed',
|
||||
'restoring_audio_skipped': 'Restoring audio skipped',
|
||||
'clearing_temp': 'Clearing temporary resources',
|
||||
'processing_stopped': 'Processing stopped',
|
||||
'processing_image_succeed': 'Processing to image succeed in {seconds} seconds',
|
||||
'processing_image_failed': 'Processing to image failed',
|
||||
'processing_video_succeed': 'Processing to video succeed in {seconds} seconds',
|
||||
@@ -67,8 +75,9 @@ WORDING : Dict[str, Any] =\
|
||||
'face_detector_model': 'choose the model responsible for detecting the face',
|
||||
'face_detector_size': 'specify the size of the frame provided to the face detector',
|
||||
'face_detector_score': 'filter the detected faces base on the confidence score',
|
||||
'face_landmarker_score': 'filter the detected landmarks base on the confidence score',
|
||||
# face selector
|
||||
'face_selector_mode': 'use reference based tracking with simple matching',
|
||||
'face_selector_mode': 'use reference based tracking or simple matching',
|
||||
'reference_face_position': 'specify the position used to create the reference face',
|
||||
'reference_face_distance': 'specify the desired similarity between the reference face and target face',
|
||||
'reference_frame_number': 'specify the frame used to create the reference face',
|
||||
@@ -81,10 +90,10 @@ WORDING : Dict[str, Any] =\
|
||||
'trim_frame_start': 'specify the the start frame of the target video',
|
||||
'trim_frame_end': 'specify the the end frame of the target video',
|
||||
'temp_frame_format': 'specify the temporary resources format',
|
||||
'temp_frame_quality': 'specify the temporary resources quality',
|
||||
'keep_temp': 'keep the temporary resources after processing',
|
||||
# output creation
|
||||
'output_image_quality': 'specify the image quality which translates to the compression factor',
|
||||
'output_image_resolution': 'specify the image output resolution based on the target image',
|
||||
'output_video_encoder': 'specify the encoder use for the video compression',
|
||||
'output_video_preset': 'balance fast video processing and video file size',
|
||||
'output_video_quality': 'specify the video quality which translates to the compression factor',
|
||||
@@ -131,6 +140,7 @@ WORDING : Dict[str, Any] =\
|
||||
'face_detector_model_dropdown': 'FACE DETECTOR MODEL',
|
||||
'face_detector_size_dropdown': 'FACE DETECTOR SIZE',
|
||||
'face_detector_score_slider': 'FACE DETECTOR SCORE',
|
||||
'face_landmarker_score_slider': 'FACE LANDMARKER SCORE',
|
||||
# face masker
|
||||
'face_mask_types_checkbox_group': 'FACE MASK TYPES',
|
||||
'face_mask_blur_slider': 'FACE MASK BLUR',
|
||||
@@ -161,6 +171,7 @@ WORDING : Dict[str, Any] =\
|
||||
# output options
|
||||
'output_path_textbox': 'OUTPUT PATH',
|
||||
'output_image_quality_slider': 'OUTPUT IMAGE QUALITY',
|
||||
'output_image_resolution_dropdown': 'OUTPUT IMAGE RESOLUTION',
|
||||
'output_video_encoder_dropdown': 'OUTPUT VIDEO ENCODER',
|
||||
'output_video_preset_dropdown': 'OUTPUT VIDEO PRESET',
|
||||
'output_video_quality_slider': 'OUTPUT VIDEO QUALITY',
|
||||
@@ -175,7 +186,6 @@ WORDING : Dict[str, Any] =\
|
||||
'target_file': 'TARGET',
|
||||
# temp frame
|
||||
'temp_frame_format_dropdown': 'TEMP FRAME FORMAT',
|
||||
'temp_frame_quality_slider': 'TEMP FRAME QUALITY',
|
||||
# trim frame
|
||||
'trim_frame_start_slider': 'TRIM FRAME START',
|
||||
'trim_frame_end_slider': 'TRIM FRAME END',
|
||||
|
||||
Reference in New Issue
Block a user