250 Commits

Author SHA1 Message Date
Sefik Ilkin Serengil
2e282db74b common function to get tf major version 2024-01-20 20:59:05 +00:00
Sefik Ilkin Serengil
585bdae6b2 DeepFace.build_model should return any 2024-01-20 20:44:00 +00:00
Sefik Ilkin Serengil
0fd77e1c99 facial recognition, detector and demography models are now using interface 2024-01-20 19:23:28 +00:00
Sefik Ilkin Serengil
7f719b87bd interface functions moved to modules 2024-01-13 22:21:41 +00:00
Sefik Ilkin Serengil
0eb1515e11 avoid dimension imcompability error
created pickle may have 2622 dimensional vectors but VGG-Face is not creating
4096 dimensional vectors. If they are mismatch, then raise a meaningful error
2024-01-08 16:59:20 +00:00
Sefik Ilkin Serengil
f23ab85fd1 using type hinting for backend functions 2023-12-24 14:38:14 +00:00
Sefik Ilkin Serengil
308ab61b41 modular tests 2023-12-24 13:06:07 +00:00
Sefik Ilkin Serengil
0c0dfb8090
Update DeepFace.py
model type check
2023-12-18 12:06:49 +00:00
Sefik Ilkin Serengil
19f7cf620d
Update DeepFace.py
build_model return type
2023-12-18 11:56:56 +00:00
Sefik Ilkin Serengil
e91e48bd6c
Update DeepFace.py 2023-12-18 09:35:37 +00:00
Sefik Ilkin Serengil
e4a43fd86b
Update DeepFace.py
functional may come from keras or tf.keras. hard to manage in typing. used any for build_model.
2023-12-18 09:31:54 +00:00
RazaProdigy
aa96a76cb2 Removed typo from code 2023-12-18 13:25:36 +04:00
RazaProdigy
90a0282ed9 Refine type hints as per PR review 2023-12-18 13:18:57 +04:00
RazaProdigy
cfff58792a Added type hints 2023-12-17 13:59:32 +04:00
xuwei
7b1451ac50 fix(represent): change somthing according to comments and adapt pylint 2023-12-14 12:29:35 +00:00
xuwei
8c6dad0147 fix(represent): 1. support represent user given image 2. img_path support pathlib.Path 2023-12-14 06:57:49 +00:00
Sefik Ilkin Serengil
76a6bce824 some improvements
- pickle file is out dated, then user informed with meaningful message.
- response df of find, we were just showing source image's region,
we just added the target image's region
2023-12-08 22:15:34 +00:00
Sefik Ilkin Serengil
63b397aa8e review comments resolved 2023-12-06 21:07:31 +00:00
Sefik Ilkin Serengil
125895398e modules added into logger 2023-12-06 20:55:00 +00:00
Sefik Ilkin Serengil
5464ac511c logger instead of print 2023-12-06 19:32:38 +00:00
Sefik Ilkin Serengil
bb2b28e1d9
Update DeepFace.py 2023-11-22 12:02:21 +00:00
Sefik Ilkin Serengil
37c94467f3
Update DeepFace.py 2023-11-22 11:57:55 +00:00
Sefik Ilkin Serengil
f2068df6a8
Update DeepFace.py 2023-11-22 11:49:55 +00:00
Nicolò Di Domenico
c268e396a8
fix missing normalization when skipping face detection 2023-11-15 10:47:24 +01:00
Sefik Ilkin Serengil
8eb8d96a54 old version of model.predict stored 2023-10-22 19:46:02 +01:00
Sefik Ilkin Serengil
68eaafc614
Merge pull request #857 from Villyli/master
change model.predict() to model(), notably improve memory leak (issue #697)
2023-10-22 19:41:11 +01:00
adnanHaddy
0a389deaf1 Include detected face confidence 2023-10-18 12:27:54 -07:00
lilw5
1d57b2f7f3 change model.predict() to model(), improve mem leak notably 2023-10-10 11:16:44 +08:00
Awshr
1cec1d8f4a find method documentation modified 2023-07-27 09:21:02 +03:00
Vincent STRAGIER
64f93d1fcc Change yolov8n to yolov8. 2023-06-24 00:05:48 +02:00
Vincent STRAGIER
0c50eb7178 Remove unwanted line return. 2023-06-23 20:34:51 +02:00
Vincent STRAGIER
16d37711d5 Remove unwanted line returns. 2023-06-23 20:33:47 +02:00
Vincent STRAGIER
dc0fa0cec6 Merging from master 2023-06-23 20:26:51 +02:00
Vincent STRAGIER
1a3e869737 Better type checking. 2023-06-23 17:37:19 +02:00
Vincent STRAGIER
1506a67725 Revert some grammar changes. 2023-06-23 16:53:34 +02:00
Vincent STRAGIER
052abd26c7 Merge branch 'analyze_raise_on_empty_actions' into YOLOv8 2023-06-09 13:51:30 +02:00
Vincent STRAGIER
e845c00c24 Partial grammatical uniformisation of analys**. 2023-06-05 14:30:19 +02:00
Vincent STRAGIER
4ff75ecfc2 Remove unwanted changes and fix linting. 2023-06-05 14:06:10 +02:00
Vincent STRAGIER
f88a560f21 Fix linting errors. 2023-06-05 13:54:40 +02:00
Vincent STRAGIER
a380cfffbb Remove unwanted changes, and add comments. 2023-06-05 13:47:55 +02:00
Vincent STRAGIER
c09fc43d45 Add some comments about the changes. 2023-06-05 12:27:18 +02:00
Vincent STRAGIER
e643f56b75 Unlinted changes 2023-05-23 14:47:22 +02:00
miawoltn
0ade149ee6 add missing parameter descriptions 2023-05-09 12:28:27 +01:00
Matthew Liechty
b23749509f
Update DeepFace.py 2023-03-09 11:02:22 -05:00
Sefik Ilkin Serengil
7414066a73
docstring 2023-02-24 12:05:13 +00:00
Sefik Ilkin Serengil
75f3eb7577 deprecated functions 2023-02-24 11:54:58 +00:00
Sefik Ilkin Serengil
a010c4188f deprecated functions 2023-02-24 11:37:57 +00:00
Sefik Ilkin Serengil
d04ab28bd3 deprecated functions added 2023-02-23 10:04:22 +00:00
Sefik Ilkin Serengil
ab8470f96f
resize bug while skipped detector 2023-02-10 14:05:40 +00:00
Sefik Ilkin Serengil
f9ec08ec04
restore 2023-02-10 13:49:52 +00:00
Sefik Ilkin Serengil
067e8f8c19
restore 2023-02-10 13:34:34 +00:00
Sefik Ilkin Serengil
8f667eecc8
resizing bug in represent for skipped detector 2023-02-10 13:17:50 +00:00
Sefik Ilkin Serengil
ea43de9baa
if detector is skipped, then resizing is missing in representation 2023-02-10 13:11:30 +00:00
AlenPaulVarghese
3d52f3ee7e
fixed a typo in the comment string 2023-01-30 17:52:24 +05:30
Sefik Ilkin Serengil
2d39ade138 clean code refactoring 2023-01-29 21:39:54 +00:00
Nelson Dominguez
96025c1118 refactor: use const for model feature labels
This commit moves the feature labels for the Emotion, Gender and Race model to their
respective modules.
2023-01-29 17:32:38 +01:00
Sefik Ilkin Serengil
aa7a8af9ff workflow test 2023-01-29 01:08:13 +00:00
Sefik Ilkin Serengil
7a978d29c5 linting 2023-01-29 00:45:25 +00:00
Sefik Ilkin Serengil
be4b41fa79
docstring 2023-01-27 10:11:55 +00:00
Sefik Ilkin Serengil
f4ce488ab7
target size as is 2023-01-26 17:00:53 +00:00
Sefik Ilkin Serengil
89de20cc98
target size bug 2023-01-26 16:02:44 +00:00
Ronald Pereira
6e6215e4b9 updated PR to remove model parameter 2023-01-26 11:49:56 -03:00
Ronald Pereira
d24aeae030 updated docstring indentation 2023-01-26 10:56:58 -03:00
Ronald Pereira
e14d7d6afc .represent model parameter was being ignored if built and passed to function call 2023-01-26 10:54:24 -03:00
Sefik Ilkin Serengil
9f50eec4cd
read me 2023-01-24 23:08:02 +00:00
Sefik Ilkin Serengil
700867c7db new interface 2023-01-24 22:57:35 +00:00
Sefik Ilkin Serengil
dec0c34b2d new interface 2023-01-23 23:51:20 +00:00
Sefik Ilkin Serengil
9c6434a145 conflict 2023-01-23 21:56:30 +00:00
Sefik Ilkin Serengil
b62e3671f8 handling many faces 2023-01-23 21:54:52 +00:00
Sefik Ilkin Serengil
9c3f30db1a
doc string 2023-01-16 16:57:55 +00:00
Sefik Ilkin Serengil
e31cfe4bc8
doc string 2023-01-16 15:41:07 +00:00
Yiğit Ö. Ünver
4e3631c579
case handling analyze function with single actions 2022-12-11 21:49:02 +03:00
Sefik Ilkin Serengil
11d3061c9f verbose condition 2022-10-23 17:56:23 +01:00
Sefik Ilkin Serengil
51d10000c7 verboss off for just tf models 2022-10-23 17:55:10 +01:00
Sefik Ilkin Serengil
f26bb45b09 verbose off anyway 2022-10-23 17:23:58 +01:00
Hoan Nguyen
a807284e2a
feat(verbose): Silent tensorflow models output to stdout 2022-10-21 10:01:12 +02:00
Sefik Ilkin Serengil
5d767e2d49 code style 2022-06-22 14:11:35 +01:00
sasael
3f2fa48bee Taking gender_prediction directly 2022-06-22 15:36:20 +03:00
sasael
449bea3770 Merge branch 'master' of https://github.com/shirasael/si-deepface 2022-06-18 19:54:27 +03:00
sasael
07220feb2d bugfixes 2022-06-18 19:46:21 +03:00
Sefik Ilkin Serengil
dc57b9d43f
enforce_detection desc 2022-06-15 17:20:43 +01:00
sasael
3f29c6a606 Added dominant_gender and probabilities for man / woman results in analyze function 2022-06-12 15:35:53 +03:00
Sefik Ilkin Serengil
2bd5a5d572 script 2022-05-23 23:56:30 +01:00
Sefik Ilkin Serengil
631cf64236 sface class 2022-05-10 22:39:54 +01:00
Sefik Ilkin Serengil
cddc78f48d sface updates 2022-05-09 21:51:33 +01:00
Sefik Ilkin Serengil
8eafd08fc9
Merge branch 'master' into master 2022-05-09 21:44:14 +01:00
Rodrigo Andrade
9852bbe482 added sface 2022-05-08 21:19:52 -03:00
Onur Atakan ULUSOY
709cdc8109
Import fire 2022-05-09 00:13:53 +03:00
Onur Atakan ULUSOY
78358f7812
Merge branch 'master' into adding_command_line_interface 2022-05-08 23:23:06 +03:00
Onur Atakan ULUSOY
2d0aad07bb Save Operation for CLI 2022-05-08 23:20:42 +03:00
Sefik Ilkin Serengil
7a313f8fb0 main 2022-05-08 20:25:43 +01:00
Sefik Ilkin Serengil
31de8d7461 fire removed 2022-05-08 20:17:52 +01:00
Onur Atakan ULUSOY
a7cbf6da63 Added command line interface via fire library 2022-05-08 13:24:03 +03:00
Sefik Ilkin Serengil
fb68d4a8f8
numpy bgr 2022-05-01 09:26:49 +01:00
EigenEmara
8ceadea6ae Allow silent operation for find() 2022-04-15 10:23:01 +02:00
renhaa
4c0cdefe82
Fix typo in analyze docstring
```python
models['race'] = DeepFace.build_model('race')
```
gives
``` 
ValueError: Invalid model_name passed - race
```
Should be capital "Race"
```python
models['race'] = DeepFace.build_model('Race')
```
2022-03-15 09:29:48 +01:00
Sefik Ilkin Serengil
b4122698b6
verify outputs 2022-01-12 17:18:18 +03:00
Sefik Ilkin Serengil
ea10243c7e
target_size in detectFace 2021-12-24 11:44:46 +03:00
fpaludi
dbfebea430 Remove mutable objects from analyze arguments. Add tests to validate 2021-09-22 19:56:23 -03:00
Roelof Ruis
5b280dcb81 function name snake case 2021-08-23 15:08:47 +02:00