-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from glucauze/v1.2.2
V1.2.2 : Install speed fix and nsfw filter option
- Loading branch information
Showing
32 changed files
with
360 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
autoflake --in-place --remove-unused-variables -r --remove-all-unused-imports . | ||
mypy --install-types | ||
mypy --non-interactive --install-types | ||
pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"analyzerName":"intellisense-members-lstm-pylance","languageName":"python","identity":{"modelId":"E61945A9A512ED5E1A3EE3F1A2365B88F8FE","outputId":"E4E9EADA96734F01970E616FAB2FAC19","modifiedTimeUtc":"2020-08-11T14:06:50.811Z"},"filePath":"E61945A9A512ED5E1A3EE3F1A2365B88F8FE_E4E9EADA96734F01970E616FAB2FAC19","lastAccessTimeUtc":"2023-08-14T21:58:14.988Z"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ dill | |
ifnude | ||
insightface==0.7.3 | ||
onnx>=1.14.0 | ||
protobuf>=3.20.2 | ||
opencv-python | ||
pandas | ||
pydantic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
protobuf>=3.20.2 | ||
cython | ||
dill | ||
ifnude | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import os | ||
from modules import scripts | ||
|
||
# Defining the absolute path for the 'faceswaplab' directory inside 'models' directory | ||
MODELS_DIR = os.path.abspath(os.path.join("models", "faceswaplab")) | ||
# Defining the absolute path for the 'analysers' directory inside 'MODELS_DIR' | ||
ANALYZER_DIR = os.path.abspath(os.path.join(MODELS_DIR, "analysers")) | ||
# Defining the absolute path for the 'parser' directory inside 'MODELS_DIR' | ||
FACE_PARSER_DIR = os.path.abspath(os.path.join(MODELS_DIR, "parser")) | ||
# Defining the absolute path for the 'faces' directory inside 'MODELS_DIR' | ||
FACES_DIR = os.path.abspath(os.path.join(MODELS_DIR, "faces")) | ||
|
||
# Constructing the path for 'references' directory inside the 'extensions' and 'sd-webui-faceswaplab' directories, based on the base directory of scripts | ||
REFERENCE_PATH = os.path.join( | ||
scripts.basedir(), "extensions", "sd-webui-faceswaplab", "references" | ||
) | ||
|
||
VERSION_FLAG: str = "v1.2.1" | ||
# Defining the version flag for the application | ||
VERSION_FLAG: str = "v1.2.2" | ||
# Defining the path for 'sd-webui-faceswaplab' inside the 'extensions' directory | ||
EXTENSION_PATH = os.path.join("extensions", "sd-webui-faceswaplab") | ||
|
||
# The NSFW score threshold. If any part of the image has a score greater than this threshold, the image will be considered NSFW. | ||
NSFW_SCORE_THRESHOLD: float = 0.7 | ||
# Defining the expected SHA1 hash value for 'INSWAPPER' | ||
EXPECTED_INSWAPPER_SHA1 = "17a64851eaefd55ea597ee41e5c18409754244c5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.