From cd3ff79c2e65e5cc14077b1059e7eb87ee2e9915 Mon Sep 17 00:00:00 2001 From: yakhyo Date: Sat, 30 Aug 2025 22:43:26 +0900 Subject: [PATCH 1/2] fix: Fix installation issue with onnxruntime-gpu version --- pyproject.toml | 12 +++++++----- uniface/__init__.py | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aef60e4..383ebeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uniface" -version = "0.1.7" +version = "0.1.8" description = "UniFace: A Comprehensive Library for Face Detection, Recognition, Landmark Analysis, Age, and Gender Detection" readme = "README.md" license = { text = "MIT" } @@ -11,14 +11,16 @@ dependencies = [ "numpy", "opencv-python", "onnx", - "onnxruntime-gpu", + "onnxruntime", "scikit-image", - "requests" + "requests", + "tqdm" ] -requires-python = ">=3.8" +requires-python = ">=3.9" [project.optional-dependencies] dev = ["pytest"] +gpu = ["onnxruntime-gpu"] [project.urls] Homepage = "https://github.com/yakhyo/uniface" @@ -32,4 +34,4 @@ build-backend = "setuptools.build_meta" packages = ["uniface"] [tool.setuptools.package-data] -"uniface" = ["*.txt", "*.md"] +"uniface" = ["*.txt", "*.md"] \ No newline at end of file diff --git a/uniface/__init__.py b/uniface/__init__.py index e8187eb..e32725e 100644 --- a/uniface/__init__.py +++ b/uniface/__init__.py @@ -13,7 +13,7 @@ __license__ = "MIT" __author__ = "Yakhyokhuja Valikhujaev" -__version__ = "0.1.7" +__version__ = "0.1.8" from uniface.retinaface import RetinaFace From c2d52e305a67d3ed0de3c3f7490db2561a86d10e Mon Sep 17 00:00:00 2001 From: yakhyo Date: Sat, 30 Aug 2025 22:50:28 +0900 Subject: [PATCH 2/2] fix: Fix github actions --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d05fcb..ee7fbb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout code @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install .[dev] || pip install pytest # Use extras_require if available + python -m pip install .[dev] - name: Run Tests run: pytest