* Modernize CI * Modernize CI * Modernize CI * Implement dynamic config (#518) * Implement dynamic config * Fix apply config * Move config to general * Move config to general * Move config to general * Add Windows installer * Add --open-browser * Add Windows installer part2 * Use non-commercial license for the installer * Fix create environment in installer * Fix openvino for installer * Fix conda for installer * Fix conda for installer, Remove python and pip as it is part of conda * Improve installer - guess the path * Fix CI * Add missing accept-source-agreements to installer * Install WinGet * Improve WinGet installation steps * Use absolute path for winget * More installer polishing * Add final page to installer, disable version check for Gradio * Remove finish page again * Use NEXT for metadata * Support for /S mode * Use winget-less approach * Improve Conda uninstall * Improve code using platform helpers (#529) * Update dependencies * Feat/fix windows unicode paths (#531) * Fix the Windows unicode path dilemma * Update dependencies * Fix the Windows unicode path dilemma part2 * Remove conda environment on uninstall * Fix uninstall command * Install apps for local user only * Add ultra sharp * Add clear reality * Update README and FUNDING * Update FUNDING.yml * Prevent preview of large videos in Gradio (#540) * Fix order * Refactor temporary file management, Use temporary file for image processing (#542) * Allow webm on target component * Reduce mosaic effect for frame processors * clear static faces on trim frame changes * Fix trim frame component * Downgrade openvino dependency * Prepare next release * Move get_short_path to filesystem, Add/Improve some testing * Prepare installer, Prevent infinite loop for sanitize_path_for_windows * Introduce execution device id * Introduce execution device id * Seems like device id can be a string * Seems like device id can be a string * Make Intel Arc work with OpenVINOExecution * Use latest Git * Update wording * Fix create_float_range * Update preview * Fix Git link
42 lines
1.7 KiB
Python
42 lines
1.7 KiB
Python
from typing import Literal, TypedDict
|
|
|
|
from facefusion.typing import Face, FaceSet, AudioFrame, VisionFrame
|
|
|
|
FaceDebuggerItem = Literal['bounding-box', 'face-landmark-5', 'face-landmark-5/68', 'face-landmark-68', 'face-landmark-68/5', 'face-mask', 'face-detector-score', 'face-landmarker-score', 'age', 'gender']
|
|
FaceEnhancerModel = Literal['codeformer', 'gfpgan_1.2', 'gfpgan_1.3', 'gfpgan_1.4', 'gpen_bfr_256', 'gpen_bfr_512', 'gpen_bfr_1024', 'gpen_bfr_2048', 'restoreformer_plus_plus']
|
|
FaceSwapperModel = Literal['blendswap_256', 'inswapper_128', 'inswapper_128_fp16', 'simswap_256', 'simswap_512_unofficial', 'uniface_256']
|
|
FrameColorizerModel = Literal['ddcolor', 'ddcolor_artistic', 'deoldify', 'deoldify_artistic', 'deoldify_stable']
|
|
FrameEnhancerModel = Literal['clear_reality_x4', 'lsdir_x4', 'nomos8k_sc_x4', 'real_esrgan_x2', 'real_esrgan_x2_fp16', 'real_esrgan_x4', 'real_esrgan_x4_fp16', 'real_hatgan_x4', 'span_kendata_x4', 'ultra_sharp_x4']
|
|
LipSyncerModel = Literal['wav2lip_gan']
|
|
|
|
FaceDebuggerInputs = TypedDict('FaceDebuggerInputs',
|
|
{
|
|
'reference_faces' : FaceSet,
|
|
'target_vision_frame' : VisionFrame
|
|
})
|
|
FaceEnhancerInputs = TypedDict('FaceEnhancerInputs',
|
|
{
|
|
'reference_faces' : FaceSet,
|
|
'target_vision_frame' : VisionFrame
|
|
})
|
|
FaceSwapperInputs = TypedDict('FaceSwapperInputs',
|
|
{
|
|
'reference_faces' : FaceSet,
|
|
'source_face' : Face,
|
|
'target_vision_frame' : VisionFrame
|
|
})
|
|
FrameColorizerInputs = TypedDict('FrameColorizerInputs',
|
|
{
|
|
'target_vision_frame' : VisionFrame
|
|
})
|
|
FrameEnhancerInputs = TypedDict('FrameEnhancerInputs',
|
|
{
|
|
'target_vision_frame' : VisionFrame
|
|
})
|
|
LipSyncerInputs = TypedDict('LipSyncerInputs',
|
|
{
|
|
'reference_faces' : FaceSet,
|
|
'source_audio_frame' : AudioFrame,
|
|
'target_vision_frame' : VisionFrame
|
|
})
|