82 questions
2
votes
2
answers
64
views
How do I deploy a service using deepface without reloading the model?
I want to load the model first. Then, every time I input an image, I can perform the inference without having to reload the model every time.
For example, I will use verification:
res = DeepFace....
0
votes
1
answer
78
views
Silencing progress bars spawned by DeepFace's extract_faces method
I'm using the library DeepFace in my personal project to extract bounding boxes of detected faces from images. As of now my setup is fairly simple, given the list of desired backends bknds:
detections ...
1
vote
1
answer
316
views
Multi-Process in deepface (face recognition)
Is there a way to send faces to the find function in parallel in face recognition?
(I want to create a batch processing or multi-processing mode so that I can process multiple faces on the GPU at the ...
0
votes
1
answer
580
views
How can I run DeepFace in a docker container on a mac?
I am trying to install deepface in docker container to do image comparison and I am close to getting it to run... however, I think I am probably missing dependencies... but cannot figure out which ...
1
vote
1
answer
193
views
DeepFace Analyze - Test scripts for batched image processing
I am having trouble getting image analysis batch processing to work. I would like to send a list of images to DeepFace to get a list of race, gender, and age predictions. I am calling test functions ...
0
votes
1
answer
202
views
Is there a way to use deepface.find() with a db being a S3 or a db table containing embeddings?
I'm working on a college project using DeepFace, and one of the requirements is to run an appliciation hosted in the cloud.
Is there a way to use DeepFace.find() function setting the db_path as an S3 ...
0
votes
1
answer
491
views
How to change default location of Deepface model weights from home folder to project folder?
When you load a model from Deepface for the first time, it downloads the model weights .h5 file in the home_folder/.deepface folder and loads them for use from there.
I want to store and fetch these ...
2
votes
0
answers
63
views
Error processing frame: failed to allocate memory [Op:AddV2] - Deepface object detection
i'm a newbie to object detection, we wrote a script to identify gender and age of a person using the deepface library and then adds trackers using the Sort library.
The code works well on the CPU and ...
0
votes
1
answer
197
views
How to Parallelize a Flask App with Gunicorn and Distribute GPU Usage Among Workers?
I am building a Flask app to handle facial embeddings using DeepFace. My goal is to serve approximately 50 clients, with an estimated 10 requests per minute. Each request involves running deepface....
0
votes
1
answer
130
views
Error building Docker image for AWS Lambda function: Unable to install h5py due to missing HDF5 library
I'm trying to build a Docker image for an AWS Lambda function that requires the h5py library. However, I'm encountering an error related to missing HDF5 dependencies during the build process.
=> ...
1
vote
2
answers
1k
views
Choosing the threshold in DeepFace
Is there any study that shows how the default thresholds were chosen for the models present in DeepFace?
def find_threshold(model_name: str, distance_metric: str) -> float:
base_threshold = {&...
0
votes
1
answer
668
views
How can i pass build model in deepface library?
I am using face recognition library deepface,and using find method for identify images i need to pass prebuild model to that method but it is not working can any one explain how can i do that?
output2 ...
0
votes
2
answers
2k
views
How to feed DeepFace.find() the faces extracted by DeepFace.extract_faces()?
I'm creating a face recognition script that process a list of photos and check if the face has a match in the database.
If Yes, add the cropped face to its matched folder in the database.
If No, add ...
0
votes
0
answers
220
views
DeepFace Module Not Found Error on macOS After Installation
I'm developing a web application using CodeIgniter that includes a facial recognition feature for attendance using the DeepFace library. I'm coding on Windows, but when I run my project on macOS, I ...
0
votes
0
answers
742
views
deepFace: No module named 'tensorflow.keras'
i try downgrading from tensorflow = 2.16.1 to 2.15.0. because when i run it with tensorflow = 2.16.1 i encountered tf-keras not found.
now i have tensorflow =2.15.0 , (Ubuntu). how can i solve this ...