Spaces:
Paused
Paused
Upload 11 files
Browse files- .editorconfig +8 -0
- .flake8 +3 -0
- .gitignore +3 -0
- LICENSE.md +3 -0
- README.md +1 -1
- app.py +6 -0
- facefusion.ini +66 -0
- install.py +6 -0
- mypy.ini +7 -0
- requirements.txt +11 -0
.editorconfig
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
root = true
|
2 |
+
|
3 |
+
[*]
|
4 |
+
end_of_line = lf
|
5 |
+
insert_final_newline = true
|
6 |
+
indent_size = 4
|
7 |
+
indent_style = tab
|
8 |
+
trim_trailing_whitespace = true
|
.flake8
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[flake8]
|
2 |
+
select = E3, E4, F
|
3 |
+
per-file-ignores = facefusion/core.py:E402, facefusion/installer.py:E402
|
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
.assets
|
2 |
+
.idea
|
3 |
+
.vscode
|
LICENSE.md
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
MIT license
|
2 |
+
|
3 |
+
Copyright (c) 2023 Henry Ruhs
|
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 👁
|
|
4 |
colorFrom: indigo
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: indigo
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.50.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
|
3 |
+
from facefusion import core
|
4 |
+
|
5 |
+
if __name__ == '__main__':
|
6 |
+
core.cli()
|
facefusion.ini
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[general]
|
2 |
+
source_paths =
|
3 |
+
target_path =
|
4 |
+
output_path =
|
5 |
+
|
6 |
+
[misc]
|
7 |
+
skip_download =
|
8 |
+
headless =
|
9 |
+
log_level =
|
10 |
+
|
11 |
+
[execution]
|
12 |
+
execution_providers =
|
13 |
+
execution_thread_count =
|
14 |
+
execution_queue_count =
|
15 |
+
|
16 |
+
[memory]
|
17 |
+
video_memory_strategy =
|
18 |
+
system_memory_limit =
|
19 |
+
|
20 |
+
[face_analyser]
|
21 |
+
face_analyser_order =
|
22 |
+
face_analyser_age =
|
23 |
+
face_analyser_gender =
|
24 |
+
face_detector_model =
|
25 |
+
face_detector_size =
|
26 |
+
face_detector_score =
|
27 |
+
|
28 |
+
[face_selector]
|
29 |
+
face_selector_mode =
|
30 |
+
reference_face_position =
|
31 |
+
reference_face_distance =
|
32 |
+
reference_frame_number =
|
33 |
+
|
34 |
+
[face_mask]
|
35 |
+
face_mask_types =
|
36 |
+
face_mask_blur =
|
37 |
+
face_mask_padding =
|
38 |
+
face_mask_regions =
|
39 |
+
|
40 |
+
[frame_extraction]
|
41 |
+
trim_frame_start =
|
42 |
+
trim_frame_end =
|
43 |
+
temp_frame_format =
|
44 |
+
temp_frame_quality =
|
45 |
+
keep_temp =
|
46 |
+
|
47 |
+
[output_creation]
|
48 |
+
output_image_quality =
|
49 |
+
output_video_encoder =
|
50 |
+
output_video_preset =
|
51 |
+
output_video_quality =
|
52 |
+
output_video_resolution =
|
53 |
+
output_video_fps =
|
54 |
+
skip_audio =
|
55 |
+
|
56 |
+
[frame_processors]
|
57 |
+
frame_processors =
|
58 |
+
face_debugger_items =
|
59 |
+
face_enhancer_model =
|
60 |
+
face_enhancer_blend =
|
61 |
+
face_swapper_model =
|
62 |
+
frame_enhancer_model =
|
63 |
+
frame_enhancer_blend =
|
64 |
+
|
65 |
+
[uis]
|
66 |
+
ui_layouts =
|
install.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
|
3 |
+
from facefusion import installer
|
4 |
+
|
5 |
+
if __name__ == '__main__':
|
6 |
+
installer.cli()
|
mypy.ini
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[mypy]
|
2 |
+
check_untyped_defs = True
|
3 |
+
disallow_any_generics = True
|
4 |
+
disallow_untyped_calls = True
|
5 |
+
disallow_untyped_defs = True
|
6 |
+
ignore_missing_imports = True
|
7 |
+
strict_optional = False
|
requirements.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
basicsr==1.4.2
|
2 |
+
filetype==1.2.0
|
3 |
+
gradio==3.50.2
|
4 |
+
numpy==1.26.2
|
5 |
+
onnx==1.15.0
|
6 |
+
onnxruntime==1.16.3
|
7 |
+
opencv-python==4.8.1.78
|
8 |
+
psutil==5.9.6
|
9 |
+
realesrgan==0.3.0
|
10 |
+
torch==2.1.2
|
11 |
+
tqdm==4.66.1
|