From 3ab2f693736b787ecd2bbe16a646712b37f201c8 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Sat, 3 May 2025 07:02:15 +0900 Subject: [PATCH 1/2] actions/upload-artifact@v4 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a9ecacaa..2be8e3521 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -108,13 +108,13 @@ jobs: python -m coverage html -i working-directory: stable-diffusion-webui - name: Upload main app output - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: output path: stable-diffusion-webui/output.txt - name: Upload coverage HTML - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: htmlcov From ef48a859329c87e687f42894a14b123ca78a1a0e Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:24:30 +0900 Subject: [PATCH 2/2] Also auto install insightface for Python 3.9 3.11 3.12 --- install.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install.py b/install.py index 4a7fec204..fc50c2fb6 100644 --- a/install.py +++ b/install.py @@ -110,19 +110,19 @@ def try_install_insight_face(): in principle. Here the solution is to download a precompiled wheel.""" if get_installed_version("insightface") is not None: return - - default_win_wheel = "https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl" + win_wheels = { + (3, 9): "https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp39-cp39-win_amd64.whl", + (3, 10): "https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl", + (3, 11): "https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl", + (3, 12): "https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp312-cp312-win_amd64.whl", + } + default_win_wheel = win_wheels.get((sys.version_info.major, sys.version_info.minor)) wheel_url = os.environ.get("INSIGHTFACE_WHEEL", default_win_wheel) system = platform.system().lower() architecture = platform.machine().lower() - python_version = sys.version_info - if wheel_url != default_win_wheel or ( - system == "windows" - and "amd64" in architecture - and python_version.major == 3 - and python_version.minor == 10 - ): + + if wheel_url is not None and wheel_url != default_win_wheel or (system == "windows" and "amd64" in architecture): try: launch.run_pip( f"install {wheel_url}",