Skip to content

UniFace: A Unified Face Analysis Library for Python | Detection, alignment, landmarks, face-mesh, recognition, parsing, gaze, attributes and anti-spoofing under one API.

ci: Use trusted publishing for PyPI and update README (#156)

Yakhyokhuja Valikhujaev9e600bbe2157
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index f23ac1a..b85a384 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -180,10 +180,7 @@ jobs:
run: twine check dist/*
- name: Publish to PyPI
- env:
- TWINE_USERNAME: __token__
- TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
- run: twine upload dist/*
+ uses: pypa/gh-action-pypi-publish@release/v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
diff --git a/README.ko.md b/README.ko.md
index 811785d..a5f2a3d 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -41,10 +41,7 @@ pip install "uniface[gpu]" # NVIDIA CUDA
pip install --pre "uniface[cpu]" # 최신 사전 릴리스
```
-<details>
-<summary><b>첫 번째 예제</b></summary>
-
-<br>
+### 첫 번째 예제
`FaceAnalyzer`는 한 번의 호출로 검출, 정렬 및 인식을 수행합니다. 속성 모델은 필요할 때 명시적으로 추가합니다.
@@ -61,8 +58,6 @@ for face in analyzer.analyze(cv2.imread("photo.jpg")):
`bbox`, `confidence`, `landmarks`, `embedding`은 항상 설정됩니다. 나이, 성별, 인종, 감정, 품질
및 얼굴 상태는 해당 값을 채우는 예측 모델을 전달하기 전까지 `None`으로 유지됩니다.
-</details>
-
<details>
<summary><b>15가지 작업과 각 작업에 사용되는 모델</b></summary>
diff --git a/README.md b/README.md
index ba02391..137ff4f 100644
--- a/README.md
+++ b/README.md
@@ -39,10 +39,7 @@ pip install "uniface[gpu]" # NVIDIA CUDA
pip install --pre "uniface[cpu]" # latest pre-release
```
-<details>
-<summary><b>A first script</b></summary>
-
-<br>
+### A first script
`FaceAnalyzer` runs detection, alignment and recognition in one call. Attribute models are opt-in.
@@ -59,8 +56,6 @@ for face in analyzer.analyze(cv2.imread("photo.jpg")):
`bbox`, `confidence`, `landmarks` and `embedding` are always set. Age, sex, race, emotion, quality
and the face states stay `None` until you pass the predictor that fills them.
-</details>
-
<details>
<summary><b>All fifteen tasks, and which model does each</b></summary>
diff --git a/README.uz.md b/README.uz.md
index e474130..904a7da 100644
--- a/README.uz.md
+++ b/README.uz.md
@@ -41,10 +41,7 @@ pip install "uniface[gpu]" # NVIDIA CUDA
pip install --pre "uniface[cpu]" # eng soʻnggi dastlabki reliz
```
-<details>
-<summary><b>Birinchi skript</b></summary>
-
-<br>
+### Birinchi skript
`FaceAnalyzer` bitta chaqiruvda yuzni aniqlash, tekislash va tanib olishni bajaradi. Atribut modellarini alohida qoʻshish kerak.
@@ -61,8 +58,6 @@ for face in analyzer.analyze(cv2.imread("photo.jpg")):
`bbox`, `confidence`, `landmarks` va `embedding` har doim toʻldiriladi. Yosh, jins, irq, hissiyot, sifat
va yuz holatlari tegishli bashorat modelini uzatmaguningizcha `None` boʻlib qoladi.
-</details>
-
<details>
<summary><b>Barcha oʻn beshta vazifa va ularni bajaradigan modellar</b></summary>
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 4a70f68..7a6d0d6 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -41,10 +41,7 @@ pip install "uniface[gpu]" # NVIDIA CUDA
pip install --pre "uniface[cpu]" # 最新预发布版本
```
-<details>
-<summary><b>第一个示例脚本</b></summary>
-
-<br>
+### 第一个示例脚本
`FaceAnalyzer` 通过一次调用完成检测、对齐和识别。属性模型需要显式启用。
@@ -61,8 +58,6 @@ for face in analyzer.analyze(cv2.imread("photo.jpg")):
`bbox`、`confidence`、`landmarks` 和 `embedding` 始终会被赋值。年龄、性别、种族、情绪、质量
和人脸状态保持为 `None`,直到你传入相应的预测模型。
-</details>
-
<details>
<summary><b>全部十五项任务及其对应模型</b></summary>