198 Commits

Author SHA1 Message Date
Samuel J. Woodward
242bd3eb84 failure to decode an io object as an image raises an exception 2025-01-10 09:14:15 -05:00
Samuel J. Woodward
f9af73c1c7 defualt --> default 2025-01-09 11:51:31 -05:00
Samuel J. Woodward
4f0fa6ee22 load_image now accepts file objects that support being read 2025-01-09 10:35:47 -05:00
Samuel J. Woodward
6a7505269c Test image_utils.yield_images returns the same files as image_utils.list_images 2025-01-06 10:11:10 -05:00
Sefik Ilkin Serengil
a8269767f3 unit test to confirm all faces detected 2024-12-24 11:11:50 +00:00
roberto-corno-nttdata
29e41e11e3 fix: yolo mention removed from recognition models 2024-12-10 17:25:49 +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
Sefik Ilkin Serengil
fb7f5b6a95 more unit tests added 2024-11-13 10:13:06 +00:00
Sefik Ilkin Serengil
0b38a3c11f for form data api tests, download files to local filesystem 2024-11-10 15:45:04 +00:00
Sefik Ilkin Serengil
b19fce5f8d form data tests added, argument names updated for existing tests (img not img_path anymore) 2024-11-10 15:17:24 +00:00
kremnik
3bb317ac63 fix l2_normalize and tests 2024-09-30 15:02:58 +03:00
kremnik
937513453e Add batched version of the find function 2024-09-30 12:29:33 +03:00
kremnik
4a81fc2553 Normalized paths in test_commons.py to make tests platform-independent 2024-09-30 00:05:36 +03:00
Sefik Ilkin Serengil
8f9c1e3b73 unit tests added for weight utils 2024-09-06 09:18:25 +01:00
Sefik Ilkin Serengil
a80d3e8d27 exception messages updated 2024-09-01 09:37:29 +01:00
Sefik Ilkin Serengil
005280f684 customize broken weight file test 2024-08-31 18:04:50 +01:00
Sefik Ilkin Serengil
e8346601e2 typo in weight file name 2024-08-31 17:53:34 +01:00
Sefik Ilkin Serengil
f23d63c643 do broken file test with unused model 2024-08-31 17:51:07 +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
ed8a6404d9 unit test for broken weight file 2024-08-31 17:12:19 +01:00
Sefik Ilkin Serengil
0d1bce3618
Update test_extract_faces.py
type controls in detected face
2024-08-30 08:04:50 +01:00
kremnik
a65f87a65a Optimize ssd detector 2024-08-27 06:06:39 +03:00
Sefik Ilkin Serengil
e9d96a789d these things covered
- expected exception messages updated
- nested embedding input is not supported, this is checked
2024-08-17 08:11:44 +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
0bb94a1a11 Update path handling 2024-08-12 03:10:20 +03:00
Sefik Ilkin Serengil
6263cef831 external tests 2024-08-04 11:47:10 +01:00
kremnik
59e8d52b63 Update Logger singleton creation, add test and docstring 2024-08-02 05:53:08 +03:00
Sefik Ilkin Serengil
37b8cc7d31 test max faces arg 2024-07-21 08:59:09 +01:00
Sefik Ilkin Serengil
f35abd1ec2 anti spoofing 2024-06-07 20:10:32 +01:00
Sefik Ilkin Serengil
13d502d3d8 unit test added for facial area coordinates after adding borders 2024-06-03 20:11:20 +01:00
Sefik Ilkin Serengil
fab08fe37c linting in test folder 2024-04-13 08:30:05 +01:00
Sefik Ilkin Serengil
4a4e706682 load base64 function renamed and moved 2024-04-13 08:10:43 +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
154fca372d unit test extended for centerface 2024-04-12 14:49:25 +01:00
Sefik Ilkin Serengil
4577b43051 unit test extended for centerface 2024-04-12 14:49:07 +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
94937cfb71 checking file's content type instead of extension 2024-04-07 09:25:51 +01: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
519c48e58d add unit test to check left eye is on the left with respect to the person instead of observer 2024-03-24 16:32:59 +00:00
Reza Karbasi
6fac5a9543 add: test regarding checking the unity of the output with respect to different data resources (for the same picture) added 2024-03-20 07:33:56 +03:30
Reza Karbasi
acea51c81d refactor: some logging descriptions revised in tests 2024-03-20 06:19:28 +03:30
Reza Karbasi
593a3c2539 add: a test added for 'represent' API endpoint to check the url input
This commit adds a new test case for the 'represent' API endpoint. The test verifies that the endpoint correctly processes an image URL and returns the expected data structure, including the correct number of face embeddings, face confidence, and facial area for each detected face in the image.
2024-03-20 06:04:32 +03:30
Reza Karbasi
24f7e11a68 fix: embedded size for facenet changed to 128 2024-03-19 15:50:02 +03:30