742 Commits

Author SHA1 Message Date
h-alice
472f146ecc
Avoid recreating resp_objects.
As the following code review comment suggested:
https://github.com/serengil/deepface/pull/1396#discussion_r1900015959
2025-01-03 10:24:43 +08:00
Mehrab Shahbazi
aa47e33cf4 remove #type ignore comments 2025-01-02 21:54:59 +03:30
Mehrab Shahbazi
c513b26d6d solved pr comments: restore comments and used one line if 2025-01-02 21:51:20 +03:30
Mehrab Shahbazi
2f9ef19e09 saving video output in stream is enabled 2025-01-01 13:15:39 +03:30
Mehrab Shahbazi
33a502f609 video path is enabled in stream 2025-01-01 12:29:20 +03:30
Nat Lee
edcef02511 [update] remove dummy functions 2024-12-31 17:30:28 +08:00
h-alice
ffbba7fe83
Change base class's predict signature. 2024-12-31 14:06:33 +08:00
Nat
4cf43be49d
Merge pull request #4 from NatLee/feat/add-multi-face-test
Feat/add multi face test
2024-12-31 13:54:01 +08:00
halice
bba4322bfb
Merge branch 'feat/merge-predicts-functions' into feat/make-Race-and-Emotion-batch 2024-12-31 12:17:26 +08:00
halice
9c079e94ae
Merge branch 'feat/batch-predict-age-and-gender' into feat/merge-predicts-functions 2024-12-31 12:15:43 +08:00
h-alice
9f3875e6a3
Update master branch. Merge branch 'master' into feat/make-Race-and-Emotion-batch 2024-12-31 12:14:35 +08:00
h-alice
f8be2821b7
Update master branch. Merge branch 'master' into feat/merge-predicts-functions 2024-12-31 12:12:52 +08:00
h-alice
e1417a0c11
Update master branch. Merge branch 'master' into feat/batch-predict-age-and-gender 2024-12-31 11:49:51 +08:00
Sefik Ilkin Serengil
ca6afd98ef some linting 2024-12-26 13:45:20 +00:00
Sefik Ilkin Serengil
0daf502e87 new function and variable names 2024-12-26 13:27:28 +00:00
Sefik Ilkin Serengil
3d914f1337 function and variable names updated 2024-12-26 12:47:02 +00:00
Sefik Ilkin Serengil
d375962cab fastmtcnn's coordinates casted to int 2024-12-26 12:34:13 +00:00
huulockt
421ef9e8b8 adjust alignment input to enhance time efficiency 2024-12-26 05:15:40 +07:00
Mehran Ghandehari
967beea816
Update CenterFace threshold
the original repo use a threshold of 0.35 that is appropriate based on my tests. 0.8 is very large and results in many false negatives.
2024-12-19 16:21:09 -05:00
Sefik Ilkin Serengil
4fe4ba289e
Update routes.py
support form data for flask 3
2024-12-19 11:19:59 +00:00
dohyeonYoon
17a72af6f3 Fix: model code comment correction 2024-12-19 13:52:33 +09:00
dohyeonYoon
208a42ba55 Fix: code comment correction 2024-12-18 14:36:20 +09:00
Nat Lee
d992428d65 [update] embed into deepface module 2024-12-17 14:41:18 +08:00
Nat Lee
b9418eb46f [fix] input to inputs 2024-12-17 14:02:30 +08:00
Nat Lee
38c06522a5 [update] enhance predict methods in Emotion and Race models to support single and batch inputs 2024-12-17 13:55:07 +08:00
Nat Lee
27e8fc9d5e [update] enhance predict methods to support single and batch inputs for Age and Gender models 2024-12-17 13:44:01 +08:00
roberto-corno-nttdata
9abcbd3d9c fix: linting issues 2024-12-11 12:07:52 +01:00
roberto-corno-nttdata
f808126101 fix: rechecked with ultralitycs, embeddings generation is a bit misleading in terms of documentaion. In the end not suitable for recognition at all. Removed YoloFacialRecognition 2024-12-10 16:00:43 +01:00
roberto-corno-nttdata
c25f14af10 fix: yolo input_shape 2024-12-09 16:04:08 +01:00
roberto-corno-nttdata
d3a3f2b65f fix: documentation 2024-12-09 16:00:27 +01:00
roberto-corno-nttdata
79dedc08c1 fix: added input_shape to YoloFacialRecognitionClient 2024-12-09 14:45:34 +01:00
roberto-corno-nttdata
01bf48dff8 fix:YoloModel removal 2024-12-09 11:51:56 +01:00
roberto-corno-nttdata
7156e6f551 fix: method documentation 2024-12-09 10:20:59 +01:00
roberto-corno-nttdata
38261e07e5 yolov11n and yolov11m added to model selection 2024-12-07 23:00:16 +01:00
roberto-corno-nttdata
2c2dc7b1f0 yolov11n and yolov11m added to model selection 2024-12-07 14:22:24 +01:00
Nat Lee
29c818d61e [fix] line too long 2024-12-06 13:55:16 +08:00
Nat Lee
b55cb31e45 [fix] name of model attributes inputs 2024-12-06 13:45:22 +08:00
Nat Lee
a4b1b5d157 [update] add batch predicting for Gender model 2024-12-05 17:55:17 +08:00
Nat Lee
c42df046f1 [update] add batch predicting for Age model 2024-12-05 17:55:10 +08:00
Sefik Ilkin Serengil
a4479ceb14 unit tests 2024-11-10 18:40:38 +00:00
Sefik Ilkin Serengil
60067e24a0 load image either from json or form data 2024-11-10 15:19:16 +00:00
Sefik Ilkin Serengil
8b2475acb2 img args are either numpy or string, and exception logs dumped 2024-11-10 15:18:52 +00:00
Sefik Ilkin Serengil
6db41ae3f2 load image from file storage added 2024-11-10 15:18:05 +00:00
Sefik Ilkin Serengil
4429066ccd we are now expection img, img1, img2 not img_path, img1_path, img2_path 2024-11-10 15:16:39 +00:00
SachaDee
8d68c6e739
Update image_utils.py
The binary mode of fromstring is deprecated: corrected to frombuffer.
2024-10-26 23:09:55 -03:00
Sefik Ilkin Serengil
387ded5c66 min detection confidence score retrieved from env vars 2024-10-11 19:44:11 +01:00
tyasnk
8766a412ec Set model detection to int 2024-10-10 17:03:38 +07:00
tyasnk
5f1c51350a Feat: Configurable Mediapipe parameters 2024-10-10 16:58:58 +07:00
Tyas
49c041945a
Merge branch 'serengil:master' into master 2024-10-10 16:50:58 +07:00
Sefik Ilkin Serengil
53a96f635a refactoring distance functions 2024-10-06 21:00:07 +01:00
Sefik Ilkin Serengil
a93fb63c97 single and batch distance functions are stored in verify module 2024-10-06 20:40:33 +01:00
Sefik Ilkin Serengil
6d71177ff2 linting updates 2024-10-06 10:18:58 +01:00
Sefik Ilkin Serengil
ee4f8e6f02 circular import problem 2024-10-06 10:03:28 +01:00
Sefik Ilkin Serengil
234d0db6c5 all models can be downloaded with one shot 2024-10-06 09:58:09 +01:00
Sefik Ilkin Serengil
532004e7ee avalability of nose and mouth check 2024-10-05 22:30:49 +01:00
Sefik Ilkin Serengil
0ec185721e nose and mouth unavailable case covered 2024-10-05 22:30:20 +01:00
Sefik Ilkin Serengil
f7eb2d7873 too many args warning discarded 2024-10-05 22:29:26 +01:00
Sefik Ilkin Serengil
6b115ebac2 retinaface's nose and mouth field are returned in extract faces 2024-10-05 22:09:37 +01:00
Sefik Ilkin Serengil
6d1d6d32b3 indexes for source urls of weights added 2024-10-05 21:54:15 +01:00
Sefik Ilkin Serengil
cb0285709e unused sequantial removed 2024-10-05 21:19:39 +01:00
tyasnk
8e5e42d4d3 Mediapipe paramater now configurable by env variable 2024-10-03 10:39:27 +07:00
Tyas
c4a49fff98
Update Mediapipe min_detection_confidence 2024-10-03 06:22:50 +07:00
Tyas
476bfd1619
Merge branch 'serengil:master' into master 2024-10-03 06:20:38 +07:00
kremnik
8adca77ca6 fix: variable name has been changed 2024-09-30 19:55:13 +03:00
kremnik
3bb317ac63 fix l2_normalize and tests 2024-09-30 15:02:58 +03:00
kremnik
ad0cbaf2dc Add batched version of the find function 2024-09-30 12:33:19 +03:00
kremnik
4a81fc2553 Normalized paths in test_commons.py to make tests platform-independent 2024-09-30 00:05:36 +03:00
Tyas
c77e201aa6
Update MediaPipe.py 2024-09-24 20:37:26 +07:00
Sefik Ilkin Serengil
5c242e2c85
Merge pull request #1337 from serengil/feat-task-0609-unit-test-of-weight-utils
unit tests added for weight utils
2024-09-06 09:28:36 +01:00
Sefik Ilkin Serengil
8f9c1e3b73 unit tests added for weight utils 2024-09-06 09:18:25 +01:00
kremnik
b2e3d8d21a Improvement: check image exists first 2024-09-02 18:20:51 +03:00
Sefik Ilkin Serengil
d3200c259e
Merge pull request #1330 from kremnik/ssdpandas 2024-09-01 16:42:35 +01:00
kremnik
ef0b71a0af Change index to label in ssd detector 2024-09-01 17:41:22 +03:00
Sefik Ilkin Serengil
a80d3e8d27 exception messages updated 2024-09-01 09:37:29 +01:00
Sefik Ilkin Serengil
074e81ba50 enforce broken weight file test at the end of all tests 2024-08-31 17:31:00 +01:00
Sefik Ilkin Serengil
8b86f36390 load weights is done in a common function 2024-08-31 16:46:44 +01:00
Sefik Ilkin Serengil
a52d4f3869 cast confidence to float 2024-08-31 14:17:10 +01:00
Sefik Ilkin Serengil
3e2df1bf10 f string pring 2024-08-31 13:42:26 +01:00
Sefik Ilkin Serengil
9d8d2ddf4f weight downloads moved to a common place 2024-08-31 13:24:04 +01:00
Sefik Ilkin Serengil
5e261e709c
Update Ssd.py
ssd's confidence score should be float not numpy
2024-08-30 07:58:51 +01:00
kremnik
613583826e Optimize ssd detector:fixes 2024-08-28 19:42:00 +03:00
kremnik
a65f87a65a Optimize ssd detector 2024-08-27 06:06:39 +03:00
Josh
f4d164e0aa Linting + optimizations 2024-08-26 14:34:00 +01:00
Josh
cc8c3f0461 Fixed rotation angle 2024-08-24 09:07:53 +01:00
Josh
70bce5ae63 Sped up face alignment by using cv2 for rotation rather than PIL 2024-08-23 15:46:54 +01:00
Josh
6bdf83b86f Added max_faces 2024-08-23 14:09:16 +01:00
kremnik
196a22ccf7 Add Dataclass: lint fix 2024-08-22 23:26:24 +03:00
kremnik
8bf60a8d5e Add Dataclass 2024-08-22 23:09:22 +03:00
Sefik Ilkin Serengil
cc99de6e76 perform resize in a common point 2024-08-17 10:13:29 +01:00
Sefik Ilkin Serengil
a7c2a9f76b bug while showing the recognized face when source image has more than one face sorted 2024-08-17 10:09:27 +01:00
Sefik Ilkin Serengil
f544038481 v94 2024-08-17 10:08:43 +01:00
Sefik Ilkin Serengil
52d6873253 exception messages updated 2024-08-17 08:10:49 +01:00
Sefik Ilkin Serengil
39a6d24163 whitespace removed 2024-08-17 08:10:36 +01:00
kremnik
a2e590cfb0 Update minimum distance between embeddings calculation: fixes 2024-08-16 21:53:33 +03:00
kremnik
ca1db5fac7 Update minimum distance between embeddings calculation 2024-08-16 04:56:58 +03:00
Sefik Ilkin Serengil
30591701a7 facial area coordinates must be in image borders 2024-08-15 08:15:15 +01:00
kremnik
fc5c4b9155 Add tests for refresh_database=False 2024-08-14 20:32:54 +03:00
kremnik
6eeaeb46f2 Update internal db storage 2024-08-14 01:53:26 +03:00
kremnik
d4a544f012 Update path handling: fixes 2024-08-12 03:18:40 +03:00
kremnik
0bb94a1a11 Update path handling 2024-08-12 03:10:20 +03:00
Sefik Ilkin Serengil
b7c7a5580f models refactored 2024-08-08 08:53:56 +01:00
Sefik Ilkin Serengil
fefb0dcd14 detection module refactored 2024-08-08 08:35:05 +01:00
Golubkov Alexander
1d3de83c2a
Merge branch 'serengil:master' into distances 2024-08-04 19:43:52 +03:00
kremnik
ef228d9341 Optimize distance calculation 2024-08-04 19:39:01 +03:00
Sefik Ilkin Serengil
51717db2ba batch run support added for facial attribute models 2024-08-04 12:47:36 +01:00
Sefik Ilkin Serengil
8e2caf6ede cleaner controls 2024-08-04 12:02:24 +01:00
Sefik Ilkin Serengil
5c1bf67507 getting tasks dynamically 2024-08-04 11:57:34 +01:00
Sefik Ilkin Serengil
111c20cca5 v93 2024-08-04 11:53:28 +01:00
Sefik Ilkin Serengil
6263cef831 external tests 2024-08-04 11:47:10 +01:00
Sefik Ilkin Serengil
bb7242645e manage global variables in single place 2024-08-04 11:41:24 +01:00
kremnik
59e8d52b63 Update Logger singleton creation, add test and docstring 2024-08-02 05:53:08 +03:00
Programador Artificial
dacdca4eae Fix importError menssage 2024-07-18 19:41:26 -03:00
Sefik Ilkin Serengil
010bb2b1f0 get max_faces number faces from largest 2024-07-17 17:23:23 +01:00
Sefik Ilkin Serengil
c66804717c adding max_faces argument to represent 2024-07-17 17:00:55 +01:00
Programador Artificial
0e423a64d1 Restore grayscale=False 2024-07-15 11:20:32 -03:00
Programador Artificial
d385c63766 Remove default param 2024-07-15 11:17:14 -03:00
Programador Artificial
546675ca40 Remove call for default values 2024-07-15 11:14:15 -03:00
Programador Artificial
9300ed0dfd Add grayscale parameter again 2024-07-15 10:45:05 -03:00
Programador Artificial
878564ee1c Add color_face option for extract_faces 2024-07-15 10:21:42 -03:00
Programador Artificial
bb8096ad97 Add flag to normalize output face image 2024-07-15 10:19:26 -03:00
Programador Artificial
1ade9001a7 Improve documentation of grayscale 2024-07-13 17:00:14 -03:00
Programador Artificial
45c9f723e0 Fix extract faces grayscale 2024-07-13 16:42:03 -03:00
Student B
4ffbc8ec75
Face alignment with rotation using resample 2024-07-03 16:46:57 +03:00
Sefik Ilkin Serengil
c1f435720d cors 2024-06-11 21:47:43 +01:00
Sefik Ilkin Serengil
09fdf25bb8 show more details in case of exception while api calls 2024-06-11 20:19:26 +01:00
Sefik Ilkin Serengil
229c7673ee pylint exceptions continue 2024-06-07 20:47:46 +01:00
Sefik Ilkin Serengil
429c6b8f67 pylint exceptions 2024-06-07 20:37:48 +01:00
Sefik Ilkin Serengil
f35abd1ec2 anti spoofing 2024-06-07 20:10:32 +01:00
Sefik Ilkin Serengil
f0ffe1978c whitespaces removed 2024-06-03 20:10:28 +01:00
Sefik Ilkin Serengil
6d3b7aa4c4 in case of eyes null 2024-06-02 21:12:30 +01:00
Sefik Ilkin Serengil
5f98932ac2 v92 2024-06-02 21:08:34 +01:00
Sefik Ilkin Serengil
dcd1e80cc0 restore coordinates to version before border added 2024-06-02 21:06:46 +01:00
Sefik Ilkin Serengil
578f3e3dff Add a black border around an image to avoid moving faces outside after alignment 2024-06-02 20:33:51 +01:00
Sefik Ilkin Serengil
a8cb394b76 deepface version printed 2024-06-02 18:53:38 +01:00
Sefik Ilkin Serengil
c04e51e472 raise error if refresh db is false and pkl is empty 2024-05-18 14:05:46 +01:00
Sefik Ilkin Serengil
3a1a4a06e3 linting
- recent PR comes with long line linting error
- pipeline was using different pylint version, it gives error whereas my local does not
2024-05-17 22:02:58 +01:00
BrunoMarinhoM
b4a35fe80b minor changes and typos corrected 2024-05-17 16:34:37 -04:00
BrunoMarinhoM
3a6ab4820b ISSUE #1233: Feature refresh_database argument added to method find 2024-05-17 15:54:33 -04:00
Sefik Ilkin Serengil
c04fe040a7
Merge pull request #1229 from GobinathAL/fix_docstring 2024-05-07 19:07:06 +01:00
gobinathal
ffd712e5db fix docstring max_threshold_to_verify in verify method 2024-05-07 22:44:54 +05:30
Sefik Ilkin Serengil
633131715c v0.0.91 2024-05-02 08:26:41 +01:00
Sefik Ilkin Serengil
9b11fecfb2 bug fixes
- license mentioned in setup.py
- face region when detector skipped
2024-04-30 21:54:23 +01:00
gobinathal
b864f6a38b accept optional parameter - 'threshold' in verify method 2024-04-30 23:30:17 +05:30
Sefik Ilkin Serengil
f6a226eb4c validate projected coordinates are in the boundaries 2024-04-16 20:02:08 +01:00
Sefik Ilkin Serengil
5603d5f44a face coordinate values casted to int 2024-04-16 20:01:51 +01:00
Sefik Ilkin Serengil
b345b1dfdf image utils 2024-04-13 08:01:55 +01:00
Sefik Ilkin Serengil
cd36b13dde more file utils 2024-04-13 07:56:03 +01:00
Sefik Ilkin Serengil
821cb6b895 creating image utils 2024-04-13 07:36:43 +01:00
Sefik Ilkin Serengil
a30dd82a22 whitespace removed 2024-04-12 17:31:18 +01:00
Sefik Ilkin Serengil
32f8f6596e consider arguments have impact on embeddings 2024-04-12 17:22:08 +01:00