Merge branch 'serengil:master' into master

This commit is contained in:
Narra_Venkata_Raghu_Charan 2025-02-28 16:24:53 +05:30 committed by GitHub
commit 2c9847e256
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 87 additions and 46 deletions

View File

@ -55,6 +55,17 @@ If you use deepface in your research for facial attribute analysis purposes such
We have additionally released these papers within the DeepFace project for a multitude of purposes.
```BibTeX
@misc{serengil2025cipherface,
title = {CipherFace: A Fully Homomorphic Encryption-Driven Framework for Secure Cloud-Based Facial Recognition},
author = {Serengil, Sefik and Ozpinar, Alper},
year = {2025},
publisher = {arXiv},
url = {https://arxiv.org/abs/2502.18514},
doi = {10.48550/arXiv.2502.18514}
}
```
```BibTeX
@misc{serengil2023db,
title = {An evaluation of sql and nosql databases for facial recognition pipelines},

View File

@ -16,8 +16,14 @@
[![GitHub Sponsors](https://img.shields.io/github/sponsors/serengil?logo=GitHub&color=lightgray)](https://github.com/sponsors/serengil)
[![Buy Me a Coffee](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee)](https://buymeacoffee.com/serengil)
<div align="center">
<a href="https://trendshift.io/repositories/4227" target="_blank"><img src="https://trendshift.io/api/badge/repositories/4227" alt="serengil%2Fdeepface | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
<a href="https://www.producthunt.com/posts/deepface?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-deepface" target="_blank">
<img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=753599&theme=light" alt="DeepFace - A Lightweight Deep Face Recognition Library for Python | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
</a>
</div>
<!--
[![Hacker News](https://img.shields.io/badge/dynamic/json?color=orange&label=Hacker%20News&query=score&url=https%3A%2F%2Fhacker-news.firebaseio.com%2Fv0%2Fitem%2F42584896.json&logo=y-combinator)](https://news.ycombinator.com/item?id=42584896)
[![Product Hunt](https://img.shields.io/badge/Product%20Hunt-%E2%96%B2-orange?logo=producthunt)](https://www.producthunt.com/posts/deepface?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-deepface)
@ -399,7 +405,7 @@ Before creating a PR, you should run the unit tests and linting locally by runni
There are many ways to support a project - starring⭐ the GitHub repo is just one 🙏
If you do like this work, then you can support it financially on [Patreon](https://www.patreon.com/serengil?repo=deepface), [GitHub Sponsors](https://github.com/sponsors/serengil) or [Buy Me a Coffee](https://buymeacoffee.com/serengil). Also, your company's logo will be shown on README on GitHub and PyPI if you become a sponsor in gold, silver or bronze tiers.
If you do like this work, then you can support it financially on [Patreon](https://www.patreon.com/serengil?repo=deepface), [GitHub Sponsors](https://github.com/sponsors/serengil) or [Buy Me a Coffee](https://buymeacoffee.com/serengil). Also, your company's logo will be shown on README on GitHub if you become a sponsor in gold, silver or bronze tiers.
<a href="https://www.patreon.com/serengil?repo=deepface">
<img src="https://raw.githubusercontent.com/serengil/deepface/master/icon/patreon.png" width="30%" height="30%">
@ -429,9 +435,10 @@ Additionally, you can help us reach a wider audience by upvoting our posts on Ha
## Citation
Please cite deepface in your publications if it helps your research - see [`CITATIONS`](https://github.com/serengil/deepface/blob/master/CITATION.md) for more details. Here are its BibTex entries:
Please cite deepface in your publications if it helps your research.
If you use deepface in your research for facial recognition or face detection purposes, please cite these publications:
<details>
<summary>S. Serengil and A. Ozpinar, <b>"A Benchmark of Facial Recognition Pipelines and Co-Usability Performances of Modules"</b>, <i>Journal of Information Technologies</i>, vol. 17, no. 2, pp. 95-107, 2024.</summary>
```BibTeX
@article{serengil2024lightface,
@ -447,6 +454,10 @@ If you use deepface in your research for facial recognition or face detection pu
publisher = {Gazi University}
}
```
</details>
<details>
<summary>S. I. Serengil and A. Ozpinar, <b>"LightFace: A Hybrid Deep Face Recognition Framework"</b>, <i>2020 Innovations in Intelligent Systems and Applications Conference (ASYU)</i>, 2020, pp. 23-27.</summary>
```BibTeX
@inproceedings{serengil2020lightface,
@ -460,8 +471,10 @@ If you use deepface in your research for facial recognition or face detection pu
organization = {IEEE}
}
```
</details>
On the other hand, if you use deepface in your research for facial attribute analysis purposes such as age, gender, emotion or ethnicity prediction tasks, please cite this publication.
<details>
<summary>S. I. Serengil and A. Ozpinar, <b>"HyperExtended LightFace: A Facial Attribute Analysis Framework"</b>, <i>2021 International Conference on Engineering and Emerging Technologies (ICEET)</i>, 2021, pp. 1-4.</summary>
```BibTeX
@inproceedings{serengil2021lightface,
@ -475,6 +488,22 @@ On the other hand, if you use deepface in your research for facial attribute ana
organization = {IEEE}
}
```
</details>
<details>
<summary>S. Serengil and A. Ozpinar, <b>"CipherFace: A Fully Homomorphic Encryption-Driven Framework for Secure Cloud-Based Facial Recognition"</b>, arXiv preprint arXiv: 2502.18154, 2025.</summary>
```BibTeX
@misc{serengil2025cipherface,
title = {CipherFace: A Fully Homomorphic Encryption-Driven Framework for Secure Cloud-Based Facial Recognition},
author = {Serengil, Sefik and Ozpinar, Alper},
year = {2025},
publisher = {arXiv},
url = {https://arxiv.org/abs/2502.18514},
doi = {10.48550/arXiv.2502.18514}
}
```
</details>
Also, if you use deepface in your GitHub projects, please add `deepface` in the `requirements.txt`.

View File

@ -141,7 +141,8 @@ def verify(
"""
if isinstance(img_path, list):
# given image is already pre-calculated embedding
if not all(isinstance(dim, float) for dim in img_path):
if not all(isinstance(dim, (float, int)) for dim in img_path):
raise ValueError(
f"When passing img{index}_path as a list,"
" ensure that all its items are of type float."