change model url #57

Merged
glucauze merged 1 commits from v1.2.2a into main 2023-08-21 22:23:55 +02:00
2 changed files with 8 additions and 6 deletions
+5 -5
View File
@@ -1,8 +1,4 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
@@ -10,4 +6,8 @@ repos:
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: fix-byte-order-marker
- id: fix-byte-order-marker
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
+3 -1
View File
@@ -20,7 +20,9 @@ def check_configuration() -> None:
models_dir = MODELS_DIR
faces_dir = FACES_DIR
model_url = "https://huggingface.co/henryruhs/roop/resolve/main/inswapper_128.onnx"
model_url = (
"https://huggingface.co/deepinsight/inswapper/resolve/main/inswapper_128.onnx"
)
model_name = os.path.basename(model_url)
model_path = os.path.join(models_dir, model_name)