
* Add real_hatgan_x4 model * Mark it as NEXT * Force download to be executed and exit * Fix frame per second interpolation * 5 to 68 landmark (#456) * changes * changes * Adjust model url * Cleanup 5 to 68 landmark convertion * Move everything to face analyser * Introduce matrix only face helper * Revert facefusion.ini * Adjust limit due false positive analysis * changes (#457) * Use pixel format yuv422p to merge video * Fix some code * Minor cleanup * Add gpen_bfr_1024 and gpen_bfr_2048 * Revert it back to yuv420p due compatibility issues * Add debug back to ffmpeg * Add debug back to ffmpeg * Migrate to conda (#461) * Migrate from venv to conda * Migrate from venv to conda * Message when conda is not activated * Use release for every slider (#463) * Use release event handler for every slider * Move more sliders to release handler * Move more sliders to release handler * Add get_ui_components() to simplify code * Revert some changes on frame slider * Add the first iteration of a frame colorizer * Support for the DDColor model * Improve model file handling * Improve model file handling part2 * Remove deoldify * Remove deoldify * Voice separator (#468) * changes * changes * changes * changes * changes * changes * Rename audio extractor to voice extractor * Cosmetic changes * Cosmetic changes * Fix fps lowering and boosting * Fix fps lowering and boosting * Fix fps lowering and boosting * Some refactoring for audio.py and some astype() here and there (#470) * Some refactoring for audio.py and some astype() here and there * Fix lint * Spacing * Add mp3 to benchmark suite for lip syncer testing * Improve naming * Adjust chunk size * Use higher quality * Revert "Use higher quality" This reverts commitd32f287572
. * Improve naming in ffmpeg.py * Simplify code * Better fps calculation * Fix naming here and there * Add back real esrgan x2 * Remove trailing comma * Update wording and README * Use semaphore to prevent frame colorizer memory issues * Revert "Remove deoldify" This reverts commitbd8034cbc7
. * Remove unused type from frame colorizer * Adjust naming * Add missing clear of model initializer * Change nvenc preset mappping to support old FFMPEG 4 * Update onnxruntime to 1.17.1 * Fix lint * Prepare 2.5.0 * Fix Gradio overrides * Add Deoldify Artistic back * Feat/audio refactoring (#476) * Improve audio naming and variables * Improve audio naming and variables * Refactor voice extractor like crazy * Refactor voice extractor like crazy * Remove spaces * Update the usage --------- Co-authored-by: Harisreedhar <46858047+harisreedhar@users.noreply.github.com>
58 lines
2.3 KiB
Python
Executable File
58 lines
2.3 KiB
Python
Executable File
from typing import List, Optional
|
|
|
|
from facefusion.typing import LogLevel, VideoMemoryStrategy, FaceSelectorMode, FaceAnalyserOrder, FaceAnalyserAge, FaceAnalyserGender, FaceMaskType, FaceMaskRegion, OutputVideoEncoder, OutputVideoPreset, FaceDetectorModel, FaceRecognizerModel, TempFrameFormat, Padding
|
|
|
|
# general
|
|
source_paths : Optional[List[str]] = None
|
|
target_path : Optional[str] = None
|
|
output_path : Optional[str] = None
|
|
# misc
|
|
force_download : Optional[bool] = None
|
|
skip_download : Optional[bool] = None
|
|
headless : Optional[bool] = None
|
|
log_level : Optional[LogLevel] = None
|
|
# execution
|
|
execution_providers : List[str] = []
|
|
execution_thread_count : Optional[int] = None
|
|
execution_queue_count : Optional[int] = None
|
|
# memory
|
|
video_memory_strategy : Optional[VideoMemoryStrategy] = None
|
|
system_memory_limit : Optional[int] = None
|
|
# face analyser
|
|
face_analyser_order : Optional[FaceAnalyserOrder] = None
|
|
face_analyser_age : Optional[FaceAnalyserAge] = None
|
|
face_analyser_gender : Optional[FaceAnalyserGender] = None
|
|
face_detector_model : Optional[FaceDetectorModel] = None
|
|
face_detector_size : Optional[str] = None
|
|
face_detector_score : Optional[float] = None
|
|
face_landmarker_score : Optional[float] = None
|
|
face_recognizer_model : Optional[FaceRecognizerModel] = None
|
|
# face selector
|
|
face_selector_mode : Optional[FaceSelectorMode] = None
|
|
reference_face_position : Optional[int] = None
|
|
reference_face_distance : Optional[float] = None
|
|
reference_frame_number : Optional[int] = None
|
|
# face mask
|
|
face_mask_types : Optional[List[FaceMaskType]] = None
|
|
face_mask_blur : Optional[float] = None
|
|
face_mask_padding : Optional[Padding] = None
|
|
face_mask_regions : Optional[List[FaceMaskRegion]] = None
|
|
# frame extraction
|
|
trim_frame_start : Optional[int] = None
|
|
trim_frame_end : Optional[int] = None
|
|
temp_frame_format : Optional[TempFrameFormat] = None
|
|
keep_temp : Optional[bool] = None
|
|
# output creation
|
|
output_image_quality : Optional[int] = None
|
|
output_image_resolution : Optional[str] = None
|
|
output_video_encoder : Optional[OutputVideoEncoder] = None
|
|
output_video_preset : Optional[OutputVideoPreset] = None
|
|
output_video_quality : Optional[int] = None
|
|
output_video_resolution : Optional[str] = None
|
|
output_video_fps : Optional[float] = None
|
|
skip_audio : Optional[bool] = None
|
|
# frame processors
|
|
frame_processors : List[str] = []
|
|
# uis
|
|
ui_layouts : List[str] = []
|