From 7830eb1da9c9457aa5ee6e12d43fd6a9cdd754ec Mon Sep 17 00:00:00 2001 From: Tran Xen <137925069+glucauze@users.noreply.github.com> Date: Mon, 21 Aug 2023 22:21:55 +0200 Subject: [PATCH] change model url --- .pre-commit-config.yaml | 10 +++++----- scripts/configure.py | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94b0018..2f7be46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 \ No newline at end of file + - id: fix-byte-order-marker + - repo: https://github.com/psf/black + rev: 23.7.0 + hooks: + - id: black \ No newline at end of file diff --git a/scripts/configure.py b/scripts/configure.py index aa25e80..27811a2 100644 --- a/scripts/configure.py +++ b/scripts/configure.py @@ -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)