552 Commits

Author SHA1 Message Date
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
aku-ato
2b7c0a708e
Conditional use of GPU on FastMtCnn 2024-03-26 15:34:03 +01:00
aku-ato
3d8733812b
use GPU in fastMtCnn 2024-03-26 11:12:54 +01:00
Sefik Ilkin Serengil
09499c91c3 new version 2024-03-24 16:51:23 +00:00
Sefik Ilkin Serengil
8a178d0305 docstring updated 2024-03-24 16:48:22 +00:00
Sefik Ilkin Serengil
745b4b8835 set left and right eye locations with respect to the person instead of observer 2024-03-24 16:34:28 +00:00
Sefik Ilkin Serengil
2b5c139670 update alignment logic
now, left eye is the one on the left with respect to the person
instead of observer
2024-03-24 16:34:01 +00:00
Sefik Ilkin Serengil
97459d0c35 get the centers of right and left eye 2024-03-24 15:49:17 +00:00
Sefik Ilkin Serengil
9957fe6812 new version 2024-03-22 10:10:50 +00:00
Sefik Ilkin Serengil
0c8e869371 enforce tf 2.12 or less 2024-03-22 10:02:52 +00:00
Sefik Ilkin Serengil
47363c6efd new version 2024-03-21 18:28:59 +00:00
starenka
8a712184a0
fixing missing fstring 2024-03-20 18:41:39 +01:00
Sefik Ilkin Serengil
e442ccd2f1 avoid int64 not serializable error 2024-03-19 09:18:23 +00:00
Sefik Ilkin Serengil
ce1fa57d35 no need to check version for fb deepface 2024-03-19 08:56:05 +00:00
Sefik Ilkin Serengil
87a95dc2ae eyes can be none 2024-03-19 08:53:40 +00:00
Sefik Ilkin Serengil
71bea587da check tf_keras installation for tf 2.16 or later versions 2024-03-19 08:45:10 +00:00
Sefik Ilkin Serengil
2cbfc417a4 issue 1123 resolved
for opencv and ssd, we were finding eyes from the detected faces. that is why,
eye coordinates were inccorrect with respect to the image itself. we added the
x and y coordinates of the detected face into the eye coordinates.
2024-03-19 08:31:41 +00:00
Sefik Ilkin Serengil
90219515c3
Update GhostFaceNet.py
logger module typo
2024-03-17 12:34:02 +00:00
Sefik Ilkin Serengil
ee63d8b902 model building simplified, region calculation sorted 2024-03-17 11:52:55 +00:00
Sefik Ilkin Serengil
e1aebe5e2e new version and stock photo for model portfolio updated 2024-03-16 10:09:45 +00:00
Sefik Ilkin Serengil
8c2c5f5d0f pylint error on github actions 2024-03-16 09:52:31 +00:00
Sefik Ilkin Serengil
06d16cf444 docstring updated for ghostface 2024-03-16 09:42:42 +00:00
Sefik Ilkin Serengil
808936dc24 ghostface added in portfolio 2024-03-16 09:41:35 +00:00
Sefik Ilkin Serengil
5825e2aa88 GhostFace model added 2024-03-16 09:41:08 +00:00
Sefik Ilkin Serengil
33f4d2c314 todo removed 2024-03-16 08:47:15 +00:00
Sefik Ilkin Serengil
20b990ac07 streaming code refactored 2024-03-16 08:39:01 +00:00
Sefik Ilkin Serengil
820ba5946b resolving issue 1098 2024-03-11 18:39:00 +00:00
Sefik Ilkin Serengil
ec4c3cd17c resolving issue 1099 2024-03-11 18:36:30 +00:00
Sefik Ilkin Serengil
9705e6f4ef resolving issue 1097 2024-03-11 18:31:52 +00:00
Sefik Ilkin Serengil
049ab8cdff resolving bug 1096 2024-03-11 18:29:52 +00:00
Sefik Ilkin Serengil
7753476978 layer for external models are no longer being used 2024-03-10 15:49:48 +00:00
Sefik Ilkin Serengil
e13f3cf8ad simlipfy yolo result is valid 2024-03-10 10:50:39 +00:00
Sefik Ilkin Serengil
e67614ff7a exception handling in case of yolo has no keypoints 2024-03-10 09:08:29 +00:00
Sefik Ilkin Serengil
42e911958b tf requirement for deepface package 2024-03-09 22:34:55 +00:00
Sefik Ilkin Serengil
ca4bd256d9 docstring updated
in verify, we mentioned similarity metric but it should be distance metric
2024-03-09 21:06:25 +00:00
Sefik Ilkin Serengil
65c47badb5 LocallyConnected2D not supported after tf 2.12
- this requirements is just for deepface model. so, instead of enforcing lower tf versions
we should check the current tf version in deepface model initializaiton.
2024-03-09 21:05:19 +00:00
Sefik Ilkin Serengil
54d678ca41 get rid of unused import, add a comment 2024-03-08 23:14:17 +00:00
Sefik Ilkin Serengil
392160f6fc hash with properties instead of file itself 2024-03-08 23:09:10 +00:00
Sefik Ilkin Serengil
4b3473e023 docstring for pre-calculated embedding support in verify 2024-03-08 20:22:22 +00:00
Sefik Ilkin Serengil
259add4a13 simplify getting pickled images 2024-03-08 19:52:38 +00:00
Sefik Ilkin Serengil
6eced68e69 support embedding input for verify 2024-03-08 15:22:58 +00:00
Sefik Ilkin Serengil
d7c2998e1b wrapper for find distance added 2024-03-08 13:55:02 +00:00
Sefik Ilkin Serengil
2f9f9761d0 cover uppercase links 2024-03-08 12:01:45 +00:00
Sefik Ilkin Serengil
07a2d5bf62 enhancement for find function
- detect replaced files already in data store
- store column names in the pickle
2024-03-08 12:01:31 +00:00
Sefik Ilkin Serengil
20f916c024 distance as float instead of numpy float 2024-03-02 20:43:47 +00:00
Sefik Ilkin Serengil
29ffce8594 types for eyes 2024-03-02 20:43:16 +00:00
Sefik Ilkin Serengil
e70496ba6f avoid multiple feature extraction for faces in image pairs 2024-03-02 20:20:33 +00:00
Sefik Ilkin Serengil
715d6317d4 image loading steps refactored
- if an image starts with http, then it was trying to download from web
- to make base64 loading compatible with find, now jpg jpeg png images are accepted.
2024-03-02 12:39:07 +00:00
Sefik Ilkin Serengil
50dd5d7aa2 fastmtcnn sometimes fails 2024-03-02 12:26:02 +00:00
Sefik Ilkin Serengil
a9cb7b96e3 throw meaningful error if an img_path cannot be read 2024-03-02 11:57:21 +00:00
Sefik Ilkin Serengil
d3f7cab119 new package version 2024-03-02 11:56:43 +00:00
Sefik Ilkin Serengil
87f4893205
Merge pull request #1047 from AndreaLanfranchi/al20220227-rotate-facial-area
Simplify and strengthen rotate_facial_area
2024-02-27 11:07:52 +00:00
Andrea Lanfranchi
90053295cb
Change expression for direction detection 2024-02-27 12:00:47 +01:00
Andrea Lanfranchi
d0ffc1bfde
Amend quirk behavior of mod operator 2024-02-27 11:31:41 +01:00
Andrea Lanfranchi
923f2cfb4c
Remove unwanted comments 2024-02-27 10:58:39 +01:00
Andrea Lanfranchi
08710029e8
Remove commented out code 2024-02-27 10:52:10 +01:00
Andrea Lanfranchi
b62d6cc9a0
Amend wrong calculation of increased w and h 2024-02-27 10:51:13 +01:00
Andrea Lanfranchi
fe077308f4
Remove commented and unused code 2024-02-27 10:31:24 +01:00
Andrea Lanfranchi
fb6d2f572e
Amend double increase of expand_percentage 2024-02-27 10:29:15 +01:00
Andrea Lanfranchi
53510f0584
Linting 2024-02-27 10:15:50 +01:00
Andrea Lanfranchi
001e609a82
Simplify and strengthen rotate_facial_area 2024-02-27 10:02:38 +01:00
Dries Verachtert
07e695924b Correct info about returned types for the represent method 2024-02-26 16:44:45 +01:00
Sefik Ilkin Serengil
7ee55cb682 common confidence scales 2024-02-25 14:25:17 +00:00
Dries Verachtert
7e14fc875d Correct info about returned types for extract_faces 2024-02-25 10:21:26 +01:00
Sefik Ilkin Serengil
644c6b4013 avoid duplicate detections and loadings 2024-02-24 16:24:15 +00:00
Sefik Ilkin Serengil
0d18a7c2df bug fix in case of load image returns none 2024-02-24 15:35:26 +00:00
Sefik Ilkin Serengil
ab38a1fcf7 throw meaningful error if yolo weights failed while downloading 2024-02-24 15:31:50 +00:00
Andrea Lanfranchi
8472a8b808
Conditional log.info 2024-02-22 14:44:53 +01:00
Andrea Lanfranchi
60c23fbc8e
Remove unnecessary file close 2024-02-22 14:43:01 +01:00
Andrea Lanfranchi
7b0500a17d
Compute toc only if needed 2024-02-22 14:32:16 +01:00
Andrea Lanfranchi
411df327bf
Simplify find data initialization 2024-02-22 14:25:43 +01:00
Andrea Lanfranchi
954ac6e883
Remove trailing white-spaces 2024-02-22 13:01:10 +01:00
Andrea Lanfranchi
5a28a0b0f0
Revert usage of regex 2024-02-22 12:46:22 +01:00