724 Commits

Author SHA1 Message Date
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
Sefik Ilkin Serengil
752ae83604 docstrings updated for centerface 2024-04-12 14:50:11 +01:00
Sefik Ilkin Serengil
6b3a4eff22 centerface backend added 2024-04-12 14:48:41 +01:00
Sefik Ilkin Serengil
3299303907 forgotten print 2024-04-08 20:13:14 +01:00
Sefik Ilkin Serengil
9a83068672 singleton logger and docstrings 2024-04-08 20:11:09 +01:00
Sefik Ilkin Serengil
ae5d5b967a getting rid of target_size everywhere 2024-04-07 18:23:28 +01:00
Sefik Ilkin Serengil
1078be9f12 resize functionality moved to represent module
we were handling resizing in extract faces. with this commit
we moved it to representation module to provide seperation
of concern.
2024-04-07 18:14:27 +01:00
Sefik Ilkin Serengil
83c381e395 using with clause to open img with pil to guarantee it is closed 2024-04-07 10:18:47 +01:00
Sefik Ilkin Serengil
6c51489636 checking file type with PIL
imghdr is deprecated
2024-04-07 10:03:38 +01:00
Sefik Ilkin Serengil
8fc9db5d23 retired variable 2024-04-07 09:45:28 +01:00
Sefik Ilkin Serengil
ff27c74992
Merge pull request #1171 from serengil/feat-task-0704-file-extensions
checking file's content type instead of extension
2024-04-07 09:34:16 +01:00
Sefik Ilkin Serengil
94937cfb71 checking file's content type instead of extension 2024-04-07 09:25:51 +01:00
aku-ato
131a7fb576
move torch import from global in order to match optional dependency project philosophy 2024-04-05 17:26:45 +02:00
aku-ato
b4c16f6dbf
Merge branch 'serengil:master' into master 2024-04-05 17:22:30 +02:00
Sefik Ilkin Serengil
504dc3c66d unused imports removed and docstring detailed for sface and dlib 2024-03-31 09:25:13 +01:00
Sefik Ilkin Serengil
816f945136 abstract method is not being anymore 2024-03-28 20:00:34 +00:00
Sefik Ilkin Serengil
6cc36922d4 OOP adopted for find embeddings
- standard FR models are now using find embeddings method from its super FacialRecognition
- find embeddings renamed to forward.
2024-03-28 19:59:09 +00:00
Sefik Ilkin Serengil
c22152f921 docstrings updated 2024-03-28 18:39:26 +00:00
aku-ato
345b6717e2
Conditional use of GPU on FastMtCnn 2024-03-26 18:06:53 +01:00