Recent Releases of deepface
deepface - v0.0.95
What's Changed
- fbdeepface's confidence metric added by @serengil in https://github.com/serengil/deepface/pull/1498
- Fix FastMtCnn detection error by @nico-hahn in https://github.com/serengil/deepface/pull/1499
- Revert flask and werkzeug dependency changes by @pcbowers in https://github.com/serengil/deepface/pull/1502
New Contributors
- @nico-hahn made their first contribution in https://github.com/serengil/deepface/pull/1499
- @pcbowers made their first contribution in https://github.com/serengil/deepface/pull/1502
Full Changelog: https://github.com/serengil/deepface/compare/v0.0.94...v0.0.95
- Python
Published by serengil 5 months ago
deepface - v0.0.94
What's Changed
- Feat task 1708 stream overlay bug for crowded photo by @serengil in https://github.com/serengil/deepface/pull/1311
- Dataclass by @kremnik in https://github.com/serengil/deepface/pull/1317
- Represent optimizations by @Circuit8 in https://github.com/serengil/deepface/pull/1319
- Optimize ssd detector by @kremnik in https://github.com/serengil/deepface/pull/1321
- weight downloads moved to a common place by @serengil in https://github.com/serengil/deepface/pull/1325
- cast confidence to float by @serengil in https://github.com/serengil/deepface/pull/1326
- load weights is done in a common function by @serengil in https://github.com/serengil/deepface/pull/1327
- unit test for broken weight file by @serengil in https://github.com/serengil/deepface/pull/1329
- Tiny fix: changed index to label in ssd detector by @kremnik in https://github.com/serengil/deepface/pull/1330
- Improvement: check image exists first by @kremnik in https://github.com/serengil/deepface/pull/1334
- unit tests added for weight utils by @serengil in https://github.com/serengil/deepface/pull/1337
- Normalized paths in test_commons.py to make tests platform-independent by @kremnik in https://github.com/serengil/deepface/pull/1350
- Recognition find batched by @kremnik in https://github.com/serengil/deepface/pull/1351
- Feat task 0510 developments by @serengil in https://github.com/serengil/deepface/pull/1357
- all models can be downloaded with one shot by @serengil in https://github.com/serengil/deepface/pull/1358
- single and batch distance functions are stored in verify module by @serengil in https://github.com/serengil/deepface/pull/1359
- Configurable mediapipe params by @tyasnk in https://github.com/serengil/deepface/pull/1362
- min detection confidence score retrieved from env vars by @serengil in https://github.com/serengil/deepface/pull/1364
- improve Dockerfile to use entrypoint in order to get better log when β¦ by @seavphing in https://github.com/serengil/deepface/pull/1369
- Update requirements.txt by @cobycloud in https://github.com/serengil/deepface/pull/1370
- Update Dockerfile by @mone855 in https://github.com/serengil/deepface/pull/1374
- Update image_utils.py by @sachadee in https://github.com/serengil/deepface/pull/1377
- Feat task 0911 file input for api by @serengil in https://github.com/serengil/deepface/pull/1383
- more unit tests added by @serengil in https://github.com/serengil/deepface/pull/1386
- [FEATURE]: adding yolov11 into face detection portfolio by @nriviera in https://github.com/serengil/deepface/pull/1397
- Fix: code comment correction by @dohyeonYoon in https://github.com/serengil/deepface/pull/1402
- Fix: model code comment correction by @dohyeonYoon in https://github.com/serengil/deepface/pull/1405
- Update CenterFace threshold by @mehran66 in https://github.com/serengil/deepface/pull/1407
- Improve the face alignment performance in detect_faces() by @huulockt in https://github.com/serengil/deepface/pull/1409
- fastmtcnn's coordinates casted to int by @serengil in https://github.com/serengil/deepface/pull/1411
- video path is enabled in stream by @Mehrab-Shahbazi in https://github.com/serengil/deepface/pull/1415
- pickle objects are now dumped with pickle.HIGHEST_PROTOCOL by @PyWoody in https://github.com/serengil/deepface/pull/1418
- fix small spelling error :)) by @gustavn19 in https://github.com/serengil/deepface/pull/1421
- Optimizations for deepface.recognition.find, Optimization and New Iterator Functionality in image_utils by @PyWoody in https://github.com/serengil/deepface/pull/1420
- load_image now accepts file objects that support being read by @PyWoody in https://github.com/serengil/deepface/pull/1423
- Feat/batch predict age and gender by @NatLee in https://github.com/serengil/deepface/pull/1396
- Batching on
.representto improve performance and utilize GPU in full by @galthran-wq in https://github.com/serengil/deepface/pull/1433 - post batch changes by @serengil in https://github.com/serengil/deepface/pull/1438
- Update representation.py by @dakotah-jones in https://github.com/serengil/deepface/pull/1427
- post batch changes by @serengil in https://github.com/serengil/deepface/pull/1440
- allow 0 (as integers) when using pre-calculated embeddings in verify by @jabiinfante in https://github.com/serengil/deepface/pull/1446
- added buffalo_l model to deepface by @Raghucharan16 in https://github.com/serengil/deepface/pull/1439
- Updated Readme for buffalo_l by @Raghucharan16 in https://github.com/serengil/deepface/pull/1449
- Changing of thresholds for buffalo_l by @Raghucharan16 in https://github.com/serengil/deepface/pull/1450
- Update VGGFace.py by @timselier in https://github.com/serengil/deepface/pull/1456
- feature: Add Angular Distance as a Distance Metric by @haddyadnan in https://github.com/serengil/deepface/pull/1459
- fix: typo in error message for missing pytorch by @CatBraaain in https://github.com/serengil/deepface/pull/1463
- feeding clean images to ml models by @serengil in https://github.com/serengil/deepface/pull/1470
- Update README.md by @arsaIan in https://github.com/serengil/deepface/pull/1472
- Fix AttributeError in streaming by @catherinetcai in https://github.com/serengil/deepface/pull/1475
- Diagram visualization of the deepface codebase by @ivanmilevtues in https://github.com/serengil/deepface/pull/1479
- sanitized facial landmarks, and test for facial landmark sanitizaion by @RUTUPARNk in https://github.com/serengil/deepface/pull/1484
- isvalidlandmark in testlandmarksanitization file by @RUTUPARNk in https://github.com/serengil/deepface/pull/1485
- patched mockes' types specified by @serengil in https://github.com/serengil/deepface/pull/1487
- Pass test suite with python 3.8 by @ddaanet in https://github.com/serengil/deepface/pull/1492
- distance to confidence calculation added by @serengil in https://github.com/serengil/deepface/pull/1497
New Contributors
- @Circuit8 made their first contribution in https://github.com/serengil/deepface/pull/1319
- @tyasnk made their first contribution in https://github.com/serengil/deepface/pull/1362
- @seavphing made their first contribution in https://github.com/serengil/deepface/pull/1369
- @cobycloud made their first contribution in https://github.com/serengil/deepface/pull/1370
- @mone855 made their first contribution in https://github.com/serengil/deepface/pull/1374
- @sachadee made their first contribution in https://github.com/serengil/deepface/pull/1377
- @nriviera made their first contribution in https://github.com/serengil/deepface/pull/1397
- @dohyeonYoon made their first contribution in https://github.com/serengil/deepface/pull/1402
- @mehran66 made their first contribution in https://github.com/serengil/deepface/pull/1407
- @huulockt made their first contribution in https://github.com/serengil/deepface/pull/1409
- @Mehrab-Shahbazi made their first contribution in https://github.com/serengil/deepface/pull/1415
- @PyWoody made their first contribution in https://github.com/serengil/deepface/pull/1418
- @gustavn19 made their first contribution in https://github.com/serengil/deepface/pull/1421
- @NatLee made their first contribution in https://github.com/serengil/deepface/pull/1396
- @galthran-wq made their first contribution in https://github.com/serengil/deepface/pull/1433
- @dakotah-jones made their first contribution in https://github.com/serengil/deepface/pull/1427
- @jabiinfante made their first contribution in https://github.com/serengil/deepface/pull/1446
- @Raghucharan16 made their first contribution in https://github.com/serengil/deepface/pull/1439
- @timselier made their first contribution in https://github.com/serengil/deepface/pull/1456
- @CatBraaain made their first contribution in https://github.com/serengil/deepface/pull/1463
- @arsaIan made their first contribution in https://github.com/serengil/deepface/pull/1472
- @catherinetcai made their first contribution in https://github.com/serengil/deepface/pull/1475
- @ivanmilevtues made their first contribution in https://github.com/serengil/deepface/pull/1479
- @RUTUPARNk made their first contribution in https://github.com/serengil/deepface/pull/1484
- @ddaanet made their first contribution in https://github.com/serengil/deepface/pull/1492
Full Changelog: https://github.com/serengil/deepface/compare/v0.0.93...v0.0.94
- Python
Published by serengil 5 months ago
deepface - v0.0.93
π DeepFace v0.093 Release Notes
Weβre excited to announce the latest release of DeepFace, packed with enhancements, bug fixes, and new features. Hereβs whatβs new in v0.093:
π New Features
- CORS Enabled for All Routes: Now, CORS is enabled across all routes, enhancing cross-origin requests. (#1257)
- Face Extraction Options: Added an option to extract_faces to return faces in RGB, BGR, or Grayscale formats. More flexibility for your image processing! (#1279)
- Batch Prediction for Demography Models: We've introduced batch prediction support for demography models, speeding up the process. (#1298)
- Max Faces Argument: A new max_faces argument in represent lets you limit the number of faces processed in large images. (#1283)
π§ Enhancements
- Image Quality Improvement: The resample argument is now set to Image.BICUBIC when rotating faces, improving the quality of low-resolution images. (#1269)
- Global Variable Management: We've centralized the management of global variables for better efficiency and maintainability. (#1296)
- Logger Class Update: The logger class is now fully Singleton, ensuring consistent logging throughout the application. (#1291)
π οΈ Refactorings
- Distance Calculation Optimization: Distance calculation functions are now more efficient, using fewer commands and leveraging numpy. (#1299)
- Detection Module Revamp: The DetectorWrapper is retired; detection is now handled directly within the detection module. (#1302)
- Model Structure Overhaul: Facial recognition, face detector, demography, and spoofing models are now organized into dedicated folders under the models directory. (#1303)
- File System Command Refactor: Weβve streamlined file system commands for better performance. (#1305)
- Facial Database Optimization: We now use set instead of list when creating the facial database, improving performance. (#1306)
- Verification Module Refactor: The verification module has been refactored to improve readability and efficiency. Previously, the same code block was run twice for an image pair; now, the logic has been moved to a subfunction, which is called separately for each image. This change simplifies the code and enhances maintainability. (#1309)
π Bug Fixes
- Grayscale Face Bug Fix: Resolved an issue that occurred when returning a face in grayscale. (#1276)
- Facial Area Coordinate Bug: Fixed a bug where facial area coordinates could sometimes fall outside image borders. (#1308)
Thank you for your continued support and contributions to DeepFace! π
Packages
https://pypi.org/project/deepface/0.0.93/
- Python
Published by serengil over 1 year ago
deepface - v0.0.92
DeepFace 0.0.92 Release Notes π
New Features & Improvements π
Enhanced Find Function π Added refresh_database argument to the find function. The default value is True, but when set to False, a pickle file is used without checking for differences. (https://github.com/serengil/deepface/pull/1235)
Version Display π Package version is now shown on the API's homepage and in console logs, making it easier to track which version you're using. (https://github.com/serengil/deepface/pull/1246)
Service Port Update π Service port moved from 5000 to 5005 to avoid conflicts with AirDrop on MacBooks. (https://github.com/serengil/deepface/pull/1246)
Image Alignment Improvement πΌοΈ When faces are close to the borders, alignment previously moved them outside the image. A border with black pixels is now added to avoid this issue. (https://github.com/serengil/deepface/pull/1247)
Official Docker Image π³ Pushed the official DeepFace image to DockerHub for easier deployment and consistency. (https://github.com/serengil/deepface/pull/1249)
Face Anti-Spoofing π Added a face anti-spoofing feature to enhance security and prevent fraudulent face inputs. (https://github.com/serengil/deepface/pull/1253)
- Python
Published by serengil over 1 year ago
deepface - v0.0.91
π DeepFace v0.0.91 Release Notes π
We're excited to introduce some fantastic updates in this release! Here's what's new:
π Custom Threshold Support: With PR-1223, we've enhanced the verify method to support an optional threshold parameter. Now, you can tailor the verification process to your needs for stricter or more lenient results.
π Enhanced Documentation: Thanks to PR-1224, you'll find the latest publication mentioned in the README. Additionally, experiment results are conveniently shared in the benchmarks folder for your reference.
πΌοΈ Improved Functionality: We've fixed a bug in the represent function (PR-1225) where face regions were inaccurately returned if detection was skipped. Now, you can expect more reliable results.
π License Inclusion: PR-1225 addresses a missing license in the pip package, ensuring compliance and transparency.
π§ Issue Templates: To streamline communication and issue tracking, we've created issue templates with PR-1203. Now, reporting and addressing concerns is easier than ever before.
Thank you for your continued support and feedback! Download DeepFace v0.0.91 now to enjoy these enhancements and more. Happy coding! π€β¨
Package
- https://pypi.org/project/deepface/0.0.91/
- Python
Published by serengil over 1 year ago
deepface - v0.0.90
π DeepFace 0.0.90 Release Notes
ποΈ Improved Eye Detection:
Now utilizes dlib detector for obtaining the centers of the left and right eyes, enhancing accuracy and reliability (https://github.com/serengil/deepface/pull/1138).
Eye positioning is now relative to the person instead of the observer, aligning with biological standards (https://github.com/serengil/deepface/pull/1140).
π» Enhanced Performance:
- Fast MtCnn detector now supports GPU acceleration for faster processing (https://github.com/serengil/deepface/pull/1145).
π Model Correction:
- FaceNet model now correctly uses InceptionResNetV1, rectifying the mislabeling as V2 in its docstring (https://github.com/serengil/deepface/pull/1151).
π§ Streamlined Functionality:
Embeddings extraction function renamed to "forward" and moved to superclass for improved modularity (https://github.com/serengil/deepface/pull/1156).
Improved file detection by examining content type instead of relying solely on file extension, enhancing security (https://github.com/serengil/deepface/pull/1171, https://github.com/serengil/deepface/pull/1173, https://github.com/serengil/deepface/pull/1174).
Separated resize functionality into representation module for better code organization (https://github.com/serengil/deepface/pull/1175).
Singleton pattern implemented for logger classes to optimize resource usage (https://github.com/serengil/deepface/pull/1177).
Introduction of CenterFace face detector to DeepFace's toolkit (https://github.com/serengil/deepface/pull/1184).
Consideration of additional arguments impacting embeddings during facial database creation (https://github.com/serengil/deepface/pull/1185).
Introduction of File Utils for improved file management (https://github.com/serengil/deepface/pull/1186).
π οΈ Bug Fixes:
- Detection post-alignment now validates projected coordinates against base image size to prevent failures due to invalid coordinates (https://github.com/serengil/deepface/pull/1191).
Package
https://pypi.org/project/deepface/0.0.90/
- Python
Published by serengil over 1 year ago
deepface - v0.0.89
π οΈ Enforcing TF 2.12 or earlier is necessary if you intend to utilize the DeepFace model. Additionally, the LocallyConnected2D dependency isn't imported by default as it's unavailable post TF 2.12. - https://github.com/serengil/deepface/pull/1134
- Python
Published by serengil almost 2 years ago
deepface - v0.0.88
π DeepFace v0.0.88 Release Notes π
We're thrilled to announce the latest update to DeepFace, version 0.0.88! This release brings fixes, improvements, and enhancements to ensure a smoother and more accurate facial recognition experience. Here's what's new:
β¨ TensorFlow Compatibility Fix: We've addressed an issue where TensorFlow 2.16 caused trouble with DeepFace due to the default use of Keras 3. Thanks to PR-1126, this issue has been sorted out, ensuring seamless integration with the latest TensorFlow version.
ποΈ Eye Coordinate Correction: In previous versions, there was a bug affecting the calculation of left and right eye coordinates, particularly for OpenCV and SSD models. While this bug didn't impact facial recognition accuracy, it led to incorrect return values. Thanks to PR-1126, this issue has been resolved, guaranteeing accurate eye coordinate calculations.
π§ͺ Expanded Unit Tests: We're dedicated to ensuring the reliability and stability of DeepFace. To achieve this, we've added more unit tests for the API in PR-1127 and PR-1128. These tests help validate the functionality of the API, ensuring consistent performance across different scenarios.
With these fixes and enhancements, DeepFace v0.0.88 is better equipped to deliver accurate facial recognition results while maintaining compatibility with the latest TensorFlow versions. Upgrade now to experience the improvements firsthand! π
Stay tuned for more updates and improvements as we continue to evolve DeepFace to meet your needs. Thank you for your continued support and feedback! π
Package
https://pypi.org/project/deepface/0.0.88/
- Python
Published by serengil almost 2 years ago
deepface - v0.0.87
π DeepFace Project Release Notes - Version 0.0.87
We're excited to announce the latest updates to the DeepFace project! Here's what's new:
π» GhostFaceNet Model Added: Introducing GhostFaceNet model to our DeepFace model portfolio! Utilize this cutting-edge addition for even more accurate and robust facial recognition capabilities. - https://github.com/serengil/deepface/pull/1111
π§ Real-time Streaming Module Refactored: We've revamped our real-time streaming module for enhanced performance and efficiency. Enjoy smoother streaming experiences with DeepFace! - https://github.com/serengil/deepface/pull/1110
π οΈ Dependency Compatibility Fix: We've resolved an issue where importing the DeepFace model was causing exceptions due to a missing dependency after TensorFlow 2.12. Enjoy seamless integration regardless of your TensorFlow version. - https://github.com/serengil/deepface/pull/1083
π Improved Input Handling for Non-Keras Models: We've enhanced the input handling for facial recognition models like SFace and Dlib, ensuring consistency and ease of use across all models. Say goodbye to unnecessary complexities with retired layer.input_shape! - https://github.com/serengil/deepface/pull/1091
π Refactoring Fast MtCnn detector: model building simplified and bug while extracting facial area was sorted. - https://github.com/serengil/deepface/pull/1115
Upgrade now to DeepFace version 0.0.87 and unlock these exciting features and improvements! π
Β Package
https://pypi.org/project/deepface/0.0.87/
- Python
Published by serengil almost 2 years ago
deepface - v0.0.86
π Release Notes: Enhancements & Fixes π
π― All detectors now return a confidence score between 0 and 1 (https://github.com/serengil/deepface/pull/1041)
π Fixed the "expand facial area" logic β it was doubling the expand_percentage for width and height instead of applying it correctly. Now, it's just right. (https://github.com/serengil/deepface/pull/1047)
π Ensured rotation angles are now nicely constrained within a [0, 360) range, keeping things in a perfect circle. (https://github.com/serengil/deepface/pull/1047)
π«π¬ Added meaningful error messages for when a face can't be detected for a given a numpy array or base64 encoded image. (https://github.com/serengil/deepface/pull/1059)
π Optimized the verify function to avoid unnecessary recalculations of embeddings when multiple faces are detected in one of the image pairs. (https://github.com/serengil/deepface/pull/1059)
π Loading images from web if and only if given image is really link, discarding files with name starting with http prefix (https://github.com/serengil/deepface/pull/1059)
π In the find function, we're now checking the type of base64 encoded images to ensure compatibility with jpg, jpeg, and png formats. (https://github.com/serengil/deepface/pull/1059)
π¨ The fastmtcnn detector has been fixed to gracefully handle cases where no face is detected. (https://github.com/serengil/deepface/pull/1059)
π Verify function now gracefully accepts pre-calculated embeddings as inputs. (https://github.com/serengil/deepface/pull/1072)
π We're now including column names in the output pickle files of the file function for that extra clarity and convenience. (https://github.com/serengil/deepface/pull/1072)
ππ In find function, we are now tracking replaced files in a folder (https://github.com/serengil/deepface/pull/1072, https://github.com/serengil/deepface/pull/1074)
π οΈ Updated GitHub Actions configuration to wave goodbye to those pesky warnings. Smooth sailing ahead! (https://github.com/serengil/deepface/pull/1082)
π€ We now check the TensorFlow version in DeepFace model to avoid issues with LocallyConnected2D not being supported after tf 2.12. Ensuring smooth imports and no surprises! (https://github.com/serengil/deepface/pull/1083)
- Python
Published by serengil almost 2 years ago
deepface - v0.0.85
Fixes and Enhancements:
π Bug Fix: Resolved issue with image processing from the web. Now your DeepFace package handles web images seamlessly. https://github.com/serengil/deepface/pull/1026
π Interface Upgrade: The interface of detectors has been revamped! Detectors now return facial area coordinates, eye locations, and confidence scores. https://github.com/serengil/deepface/pull/1025
π Common Functionality Centralization: All detectors now share common functionalities like detection, alignment, and expanding facial areas, thanks to the new parent module - DetectorWrapper. https://github.com/serengil/deepface/pull/1025
π Improved Face Alignment: We've switched the order! Now, face alignment precedes facial area extraction. No more black pixels, providing a cleaner output. https://github.com/serengil/deepface/pull/1025
π Dlib Detector Fix: Corrected the returned facial area coordinates for the dlib detector. https://github.com/serengil/deepface/pull/1020
π£ Version Information: Now you can easily access version information directly from the DeepFace module with version variable. https://github.com/serengil/deepface/pull/1007
π Streaming Module Refactoring: The streaming module has undergone a thorough refactoring, enhancing its efficiency and performance. Enjoy a smoother streaming experience! https://github.com/serengil/deepface/pull/1031
π Recognition Module Overhaul: The backend of the find function, the recognition module, has been revamped for improved functionality and reliability. https://github.com/serengil/deepface/pull/1031, https://github.com/serengil/deepface/pull/1032
π Image Loading Bug Fix: Resolved a pesky bug where OpenCV's imread was returning 'None' instead of a valid image. Say goodbye to unexpected errors when loading images! https://github.com/serengil/deepface/pull/1038
π Confidence Score Standardization: Now, all detectors uniformly return confidence scores in the scale [0, 1]. This standardization ensures consistency across your DeepFace detections. https://github.com/serengil/deepface/pull/1041
Β Package
https://pypi.org/project/deepface/0.0.85/
- Python
Published by serengil almost 2 years ago
deepface - v0.0.84
π Release Notes - Version 0.0.84 (Feb 04, 2024) π
We are thrilled to announce the latest release, packed with exciting enhancements, bug fixes, and organizational improvements. Let's dive into the highlights of this release:
Features & Enhancements:
π οΈ Error Prevention in MTCNN Detector: Resolved a TypeError when running the MTCNN detector on an image with no faces. A condition using short-circuit evaluation has been added to prevent this exception. (https://github.com/serengil/deepface/pull/976)
πΈ Updated Return Type for Face Detection: Modified the return type of Detector.detect_faces and its inherited classes to improve clarity. Now returning a List[DetectedFace] where DetectedFace includes the detected image, facial area coordinates, and face confidence score. (https://github.com/serengil/deepface/pull/978)
π API Restructuring: Moved the API under the 'deepface' folder for better organization. Unit tests have been added to ensure the reliability of the API functionalities. (https://github.com/serengil/deepface/pull/1004)
π Bug Fix in API Serialization: Resolved the bug causing "Object of type int32 is not JSON serializable" in the API. Converted facial area regions from numpy int32 to Python built-in int. (https://github.com/serengil/deepface/pull/1004)
π Facial Area Expansion: Added an 'expand facial area percentage' argument to all functions for greater flexibility. (https://github.com/serengil/deepface/pull/990)
π οΈ Code Refactoring and Organization: Retired the 'find target size' function, moving facial recognition model input shapes retrieval to clients. Created a preprocessing module, relocated load image functions, and organized code logic into separate modules. (https://github.com/serengil/deepface/pull/990)
π Snake Case for Distance Calculation: Made distance calculation functions snake-cased for consistency. (https://github.com/serengil/deepface/pull/990)
π¦ Commons Module Refactoring: Retired commons.function in favor of commons.packageutils and commons.versionutils. The logic previously available under function.commons has been moved to the appropriate modules. (https://github.com/serengil/deepface/pull/999)
Documentation & Miscellaneous:
π Citations Added: Included a citations.md file for easy access to citations and references. (https://github.com/serengil/deepface/pull/999)
π§Ή Code Cleanup and Restructuring: Distance calculation functions have been moved into the verification module. Version information is now stored in package_info.json. The Postman collection is now located under api/postman. (https://github.com/serengil/deepface/pull/999)
We appreciate your continued support and feedback. Please feel free to explore these improvements and let us know if you encounter any issues or have suggestions for further enhancements. Happy coding! πβ¨
Packages
- https://pypi.org/project/deepface/0.0.84/
- Python
Published by serengil almost 2 years ago
deepface - v0.0.83
π Enhancement
Find function now returns a pandas dataframe, with the distance column named as distance by default. Improved naming practice for clarity and consistency.PR-974
Ticket: https://github.com/serengil/deepface/issues/969
π― New Feature
Added optional threshold argument to the find function. You can now filter the pandas dataframe after finding distances for each pair. If threshold is not set, the pre-tuned threshold will still be used for the given model name and distance metric. PR-974
Ticket: https://github.com/serengil/deepface/issues/972
π Bug Fix
Resolved yunet bug related to "Argument 'score_threshold' can't be treated as a float." The issue has been sorted out. PR-974
Ticket: https://github.com/serengil/deepface/issues/973
Packages
- https://pypi.org/project/deepface/0.0.83/
- Python
Published by serengil almost 2 years ago
deepface - v0.0.81
Enhancements
π VGG-Face Model Structure Update: A significant change has been made to the model structure of the VGG-Face model. The last layer, originally with 2622 output nodes for classifying identities, has been replaced. The model now utilizes its early layer, featuring 4096 output nodes. This modification is backed by experiments demonstrating an impressive accuracy improvement of nearly 6%. PR-948
π‘Type Hints Added: Type hints have been introduced for both function arguments and return types in DeepFace functions. This enhancement provides improved clarity and documentation, making it easier for developers to understand and utilize the functions effectively. PR-922, PR-934
π οΈUnit Test Refactoring: The unit testing structure has undergone significant improvements. Previously, there was a single long-running unit test, but now, the tests have been modularized into multiple units. This refactoring enhances test manageability and granularity, allowing for more focused and efficient testing of individual components. PR-932
Bugs
π οΈ YuNet Alignment Issue Resolved: Addressed and resolved the alignment issue in YuNet. Users can now experience improved alignment functionality, ensuring a more accurate and reliable performance. PR-921
π° load_image Function Update: The load_image function now returns a tuple containing the loaded image and its corresponding image name. An update has been made in DeepFace.py to accommodate this change. The outdated point where this function was called has been rectified, ensuring proper assignment of the result as a tuple for improved functionality. PR-917
π’Docker Shell Script Typo Fix: Resolved a typo in the shell script file used for Dockerizing. The discrepancy in image names during both build and run steps has been corrected, ensuring consistency and preventing potential errors. PR-943
Package
- https://pypi.org/project/deepface/0.0.81/
- Python
Published by serengil almost 2 years ago
deepface - v0.0.82
Bugs
π Normalization Layer Update : The VGG-Face model's normalization layer, causing issues for some GPU users (e.g. https://github.com/serengil/deepface/issues/957, https://github.com/serengil/deepface/issues/966), has been revamped. In this pull request, the normalization layer's functionality has been seamlessly integrated into the embedding calculation using regular NumPy operations instead of the Keras backend. PR-967
π§ DeepID Model Representation Fix: Resolved an issue with the representation call of the DeepID model, ensuring smooth and error-free execution. PR-964
π Ssd detector's alignment bug: When face detection is done with Ssd, unexpectedly it returns zero dimensional image. This causes errors in the alignment stage. We terminated the aligment procedure now if one of the dimension's shape of coming image is 0. PR-959
β Improved Dependency Handling: Meaningful exception messages are now thrown when importing uninstalled optional dependencies (e.g., Ssd, YuNet), providing clear guidance for resolving dependencies. PR-959
π¦ Package Inclusion in Wheel Build: The readme and dependencies are now included in the built wheel package. This inclusion mitigates potential errors when uploading to Conda and ensures a smoother installation process for users. PR-950
Enhancements
ποΈ Datastore Management Enhancement: After running the find function, the created datastore is now expected to be updated rather than deleted if new instances are added in the database folder. This PR ensures that the pickle file is appropriately modified when instances are added, dropped, or if the content of existing images changes, improving overall data management. PR-959
π Modularized Functionality Logics: With this PR, the functionality logics for various operations in the DeepFace interface, including verify, find, analyze, represent, stream, and extract faces, have been relocated to the modules folder. As a result, the DeepFace interface (DeepFace.py) now boasts a cleaner and more organized structure. PR-953
𧬠Abstract Classes for Models: New abstract classes, namely FacialRecognition, Detector, and Demography, have been introduced. All facial recognition models, extended models (e.g., age, gender), and detectors now inherit from these abstract classes. [This architectural enhancement simplifies the process of adding new backends for these models. PR-960, PR-962
π Docstring Refinement: Docstrings in the deepface interface have been re-arranged for improved readability and understanding, enhancing the overall documentation. PR-965
π³ Dockerfile Optimization: The Dockerfile has been updated to enhance the docker build cache layer, resulting in an optimized and more efficient build process. PR-951
Package
- https://pypi.org/project/deepface/0.0.82/
- Python
Published by serengil almost 2 years ago