Spaces:
Running
Running
Upload 235 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- facefusion/.DS_Store +0 -0
- facefusion/__init__.py +0 -0
- facefusion/__pycache__/__init__.cpython-310.pyc +0 -0
- facefusion/__pycache__/app_context.cpython-310.pyc +0 -0
- facefusion/__pycache__/args.cpython-310.pyc +0 -0
- facefusion/__pycache__/audio.cpython-310.pyc +0 -0
- facefusion/__pycache__/choices.cpython-310.pyc +0 -0
- facefusion/__pycache__/cli_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/common_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/config.cpython-310.pyc +0 -0
- facefusion/__pycache__/content_analyser.cpython-310.pyc +0 -0
- facefusion/__pycache__/core.cpython-310.pyc +0 -0
- facefusion/__pycache__/curl_builder.cpython-310.pyc +0 -0
- facefusion/__pycache__/date_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/download.cpython-310.pyc +0 -0
- facefusion/__pycache__/execution.cpython-310.pyc +0 -0
- facefusion/__pycache__/exit_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_analyser.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_classifier.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_detector.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_landmarker.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_masker.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_recognizer.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_selector.cpython-310.pyc +0 -0
- facefusion/__pycache__/face_store.cpython-310.pyc +0 -0
- facefusion/__pycache__/ffmpeg.cpython-310.pyc +0 -0
- facefusion/__pycache__/ffmpeg_builder.cpython-310.pyc +0 -0
- facefusion/__pycache__/filesystem.cpython-310.pyc +0 -0
- facefusion/__pycache__/hash_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/inference_manager.cpython-310.pyc +0 -0
- facefusion/__pycache__/installer.cpython-310.pyc +0 -0
- facefusion/__pycache__/json.cpython-310.pyc +0 -0
- facefusion/__pycache__/logger.cpython-310.pyc +0 -0
- facefusion/__pycache__/memory.cpython-310.pyc +0 -0
- facefusion/__pycache__/metadata.cpython-310.pyc +0 -0
- facefusion/__pycache__/model_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/normalizer.cpython-310.pyc +0 -0
- facefusion/__pycache__/process_manager.cpython-310.pyc +0 -0
- facefusion/__pycache__/program.cpython-310.pyc +0 -0
- facefusion/__pycache__/program_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/state_manager.cpython-310.pyc +0 -0
- facefusion/__pycache__/statistics.cpython-310.pyc +0 -0
- facefusion/__pycache__/temp_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/thread_helper.cpython-310.pyc +0 -0
- facefusion/__pycache__/types.cpython-310.pyc +0 -0
- facefusion/__pycache__/vision.cpython-310.pyc +0 -0
- facefusion/__pycache__/voice_extractor.cpython-310.pyc +0 -0
- facefusion/__pycache__/wording.cpython-310.pyc +0 -0
- facefusion/app_context.py +16 -0
facefusion/.DS_Store
ADDED
|
Binary file (10.2 kB). View file
|
|
|
facefusion/__init__.py
ADDED
|
File without changes
|
facefusion/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (153 Bytes). View file
|
|
|
facefusion/__pycache__/app_context.cpython-310.pyc
ADDED
|
Binary file (555 Bytes). View file
|
|
|
facefusion/__pycache__/args.cpython-310.pyc
ADDED
|
Binary file (4.95 kB). View file
|
|
|
facefusion/__pycache__/audio.cpython-310.pyc
ADDED
|
Binary file (4.68 kB). View file
|
|
|
facefusion/__pycache__/choices.cpython-310.pyc
ADDED
|
Binary file (6.11 kB). View file
|
|
|
facefusion/__pycache__/cli_helper.cpython-310.pyc
ADDED
|
Binary file (1.44 kB). View file
|
|
|
facefusion/__pycache__/common_helper.cpython-310.pyc
ADDED
|
Binary file (2.63 kB). View file
|
|
|
facefusion/__pycache__/config.cpython-310.pyc
ADDED
|
Binary file (2.14 kB). View file
|
|
|
facefusion/__pycache__/content_analyser.cpython-310.pyc
ADDED
|
Binary file (2.71 kB). View file
|
|
|
facefusion/__pycache__/core.cpython-310.pyc
ADDED
|
Binary file (15.1 kB). View file
|
|
|
facefusion/__pycache__/curl_builder.cpython-310.pyc
ADDED
|
Binary file (1.19 kB). View file
|
|
|
facefusion/__pycache__/date_helper.cpython-310.pyc
ADDED
|
Binary file (1.25 kB). View file
|
|
|
facefusion/__pycache__/download.cpython-310.pyc
ADDED
|
Binary file (5.62 kB). View file
|
|
|
facefusion/__pycache__/execution.cpython-310.pyc
ADDED
|
Binary file (4.18 kB). View file
|
|
|
facefusion/__pycache__/exit_helper.cpython-310.pyc
ADDED
|
Binary file (877 Bytes). View file
|
|
|
facefusion/__pycache__/face_analyser.cpython-310.pyc
ADDED
|
Binary file (3.42 kB). View file
|
|
|
facefusion/__pycache__/face_classifier.cpython-310.pyc
ADDED
|
Binary file (4.05 kB). View file
|
|
|
facefusion/__pycache__/face_detector.cpython-310.pyc
ADDED
|
Binary file (7.94 kB). View file
|
|
|
facefusion/__pycache__/face_helper.cpython-310.pyc
ADDED
|
Binary file (8.52 kB). View file
|
|
|
facefusion/__pycache__/face_landmarker.cpython-310.pyc
ADDED
|
Binary file (6.52 kB). View file
|
|
|
facefusion/__pycache__/face_masker.cpython-310.pyc
ADDED
|
Binary file (6.35 kB). View file
|
|
|
facefusion/__pycache__/face_recognizer.cpython-310.pyc
ADDED
|
Binary file (2.91 kB). View file
|
|
|
facefusion/__pycache__/face_selector.cpython-310.pyc
ADDED
|
Binary file (3.58 kB). View file
|
|
|
facefusion/__pycache__/face_store.cpython-310.pyc
ADDED
|
Binary file (1.8 kB). View file
|
|
|
facefusion/__pycache__/ffmpeg.cpython-310.pyc
ADDED
|
Binary file (7.93 kB). View file
|
|
|
facefusion/__pycache__/ffmpeg_builder.cpython-310.pyc
ADDED
|
Binary file (7.87 kB). View file
|
|
|
facefusion/__pycache__/filesystem.cpython-310.pyc
ADDED
|
Binary file (5.58 kB). View file
|
|
|
facefusion/__pycache__/hash_helper.cpython-310.pyc
ADDED
|
Binary file (1.16 kB). View file
|
|
|
facefusion/__pycache__/inference_manager.cpython-310.pyc
ADDED
|
Binary file (2.64 kB). View file
|
|
|
facefusion/__pycache__/installer.cpython-310.pyc
ADDED
|
Binary file (3.47 kB). View file
|
|
|
facefusion/__pycache__/json.cpython-310.pyc
ADDED
|
Binary file (890 Bytes). View file
|
|
|
facefusion/__pycache__/logger.cpython-310.pyc
ADDED
|
Binary file (1.83 kB). View file
|
|
|
facefusion/__pycache__/memory.cpython-310.pyc
ADDED
|
Binary file (720 Bytes). View file
|
|
|
facefusion/__pycache__/metadata.cpython-310.pyc
ADDED
|
Binary file (560 Bytes). View file
|
|
|
facefusion/__pycache__/model_helper.cpython-310.pyc
ADDED
|
Binary file (548 Bytes). View file
|
|
|
facefusion/__pycache__/normalizer.cpython-310.pyc
ADDED
|
Binary file (854 Bytes). View file
|
|
|
facefusion/__pycache__/process_manager.cpython-310.pyc
ADDED
|
Binary file (1.72 kB). View file
|
|
|
facefusion/__pycache__/program.cpython-310.pyc
ADDED
|
Binary file (18.4 kB). View file
|
|
|
facefusion/__pycache__/program_helper.cpython-310.pyc
ADDED
|
Binary file (1.26 kB). View file
|
|
|
facefusion/__pycache__/state_manager.cpython-310.pyc
ADDED
|
Binary file (1.51 kB). View file
|
|
|
facefusion/__pycache__/statistics.cpython-310.pyc
ADDED
|
Binary file (1.71 kB). View file
|
|
|
facefusion/__pycache__/temp_helper.cpython-310.pyc
ADDED
|
Binary file (1.89 kB). View file
|
|
|
facefusion/__pycache__/thread_helper.cpython-310.pyc
ADDED
|
Binary file (945 Bytes). View file
|
|
|
facefusion/__pycache__/types.cpython-310.pyc
ADDED
|
Binary file (8.59 kB). View file
|
|
|
facefusion/__pycache__/vision.cpython-310.pyc
ADDED
|
Binary file (10.5 kB). View file
|
|
|
facefusion/__pycache__/voice_extractor.cpython-310.pyc
ADDED
|
Binary file (4.95 kB). View file
|
|
|
facefusion/__pycache__/wording.cpython-310.pyc
ADDED
|
Binary file (21.1 kB). View file
|
|
|
facefusion/app_context.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
from facefusion.types import AppContext
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
def detect_app_context() -> AppContext:
|
| 8 |
+
frame = sys._getframe(1)
|
| 9 |
+
|
| 10 |
+
while frame:
|
| 11 |
+
if os.path.join('facefusion', 'jobs') in frame.f_code.co_filename:
|
| 12 |
+
return 'cli'
|
| 13 |
+
if os.path.join('facefusion', 'uis') in frame.f_code.co_filename:
|
| 14 |
+
return 'ui'
|
| 15 |
+
frame = frame.f_back
|
| 16 |
+
return 'cli'
|