socaity-face2face 0.0.7.dev4__tar.gz → 0.0.7.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {socaity_face2face-0.0.7.dev4/socaity_face2face.egg-info → socaity_face2face-0.0.7.dev6}/PKG-INFO +2 -2
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/server.py +1 -10
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/settings.py +2 -2
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/pyproject.toml +2 -2
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6/socaity_face2face.egg-info}/PKG-INFO +2 -2
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/socaity_face2face.egg-info/SOURCES.txt +1 -2
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/socaity_face2face.egg-info/requires.txt +1 -1
- socaity_face2face-0.0.7.dev4/test/test_server.py +0 -3
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/LICENSE +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/README.md +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/face2face.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_face_embedding.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_face_enhance.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_face_recognition.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_image_swap.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_video_swap.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/face_enhance/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/face_enhance/face_enhance_models.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/face_enhance/face_enhancer.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/face_enhance/face_occlusion.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/storage/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/storage/f2f_loader.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/storage/file_writable_face.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/utils/__init__.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/utils/utils.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/utils/video_utils.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/model_definitions.py +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/setup.cfg +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/socaity_face2face.egg-info/dependency_links.txt +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/socaity_face2face.egg-info/top_level.txt +0 -0
- {socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/test/test.py +0 -0
{socaity_face2face-0.0.7.dev4/socaity_face2face.egg-info → socaity_face2face-0.0.7.dev6}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: socaity-face2face
|
|
3
|
-
Version: 0.0.7.
|
|
3
|
+
Version: 0.0.7.dev6
|
|
4
4
|
Summary: Swap faces from one image to another. Create face embeddings. Integrate into hosted environments.
|
|
5
5
|
Author: SocAIty
|
|
6
6
|
License: GPLv3
|
|
@@ -12,7 +12,7 @@ Requires-Dist: insightface==0.7.3
|
|
|
12
12
|
Requires-Dist: onnxruntime-gpu==1.15.1
|
|
13
13
|
Requires-Dist: media-toolkit[VideoFile]>=0.1.1.dev1
|
|
14
14
|
Provides-Extra: full
|
|
15
|
-
Requires-Dist: fast-task-api[full]>=0.0.6.
|
|
15
|
+
Requires-Dist: fast-task-api[full]>=0.0.6.dev5; extra == "full"
|
|
16
16
|
|
|
17
17
|
<h1 align="center" style="margin-top:-25px">Face2Face</h1>
|
|
18
18
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import argparse
|
|
2
1
|
from typing import Union
|
|
3
2
|
|
|
4
|
-
from face2face.settings import PORT
|
|
5
3
|
from fast_task_api import FastTaskAPI, ImageFile, JobProgress, MediaFile, VideoFile
|
|
6
4
|
|
|
7
5
|
import numpy as np
|
|
@@ -98,13 +96,6 @@ def swap_video(
|
|
|
98
96
|
)
|
|
99
97
|
return output_video
|
|
100
98
|
|
|
101
|
-
|
|
102
|
-
def start_server(port: int = PORT):
|
|
103
|
-
app.start(port=port)
|
|
104
|
-
|
|
105
99
|
# start the server on provided port
|
|
106
100
|
if __name__ == "__main__":
|
|
107
|
-
|
|
108
|
-
arg_parser.add_argument("--port", type=int, default=PORT)
|
|
109
|
-
args = arg_parser.parse_args()
|
|
110
|
-
start_server(port=args.port)
|
|
101
|
+
app.start()
|
|
@@ -5,8 +5,8 @@ MODELS_DIR = os.path.join(ROOT_DIR, "models")
|
|
|
5
5
|
OUTPUT_DIR = os.path.join(ROOT_DIR, "output")
|
|
6
6
|
REF_FACES_DIR = os.getenv("REF_FACES_DIR", os.path.join(ROOT_DIR, "face_embeddings"))
|
|
7
7
|
|
|
8
|
-
PORT = os.getenv("PORT", 8020) # determines the port of the fastapi server
|
|
9
|
-
PROVIDER = os.getenv("PROVIDER", "fastapi")
|
|
8
|
+
#PORT = os.getenv("PORT", 8020) # determines the port of the fastapi server
|
|
9
|
+
#PROVIDER = os.getenv("PROVIDER", "fastapi")
|
|
10
10
|
|
|
11
11
|
# ONNX Runtime Settings. Note that this settings is only recognized on startup. Change the variable of f2f instance.
|
|
12
12
|
# Important in case of openvino or when using multiple gpus
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "socaity-face2face"
|
|
7
|
-
version = "0.0.7.
|
|
7
|
+
version = "0.0.7.dev6"
|
|
8
8
|
description="Swap faces from one image to another. Create face embeddings. Integrate into hosted environments."
|
|
9
9
|
requires-python = ">=3.8"
|
|
10
10
|
authors = [
|
|
@@ -24,5 +24,5 @@ Repository = "https://github.com/SocAIty/face2face"
|
|
|
24
24
|
|
|
25
25
|
[project.optional-dependencies]
|
|
26
26
|
full = [
|
|
27
|
-
"fast-task-api[full]>=0.0.6.
|
|
27
|
+
"fast-task-api[full]>=0.0.6.dev5",
|
|
28
28
|
]
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6/socaity_face2face.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: socaity-face2face
|
|
3
|
-
Version: 0.0.7.
|
|
3
|
+
Version: 0.0.7.dev6
|
|
4
4
|
Summary: Swap faces from one image to another. Create face embeddings. Integrate into hosted environments.
|
|
5
5
|
Author: SocAIty
|
|
6
6
|
License: GPLv3
|
|
@@ -12,7 +12,7 @@ Requires-Dist: insightface==0.7.3
|
|
|
12
12
|
Requires-Dist: onnxruntime-gpu==1.15.1
|
|
13
13
|
Requires-Dist: media-toolkit[VideoFile]>=0.1.1.dev1
|
|
14
14
|
Provides-Extra: full
|
|
15
|
-
Requires-Dist: fast-task-api[full]>=0.0.6.
|
|
15
|
+
Requires-Dist: fast-task-api[full]>=0.0.6.dev5; extra == "full"
|
|
16
16
|
|
|
17
17
|
<h1 align="center" style="margin-top:-25px">Face2Face</h1>
|
|
18
18
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_face_enhance.py
RENAMED
|
File without changes
|
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_image_swap.py
RENAMED
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/mixins/_video_swap.py
RENAMED
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/core/modules/utils/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{socaity_face2face-0.0.7.dev4 → socaity_face2face-0.0.7.dev6}/face2face/model_definitions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|