Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
51 views

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....
陶情适性's user avatar
0 votes
1 answer
76 views

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 ...
Kamugg's user avatar
  • 31
1 vote
1 answer
313 views

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 ...
parsa's user avatar
  • 11
0 votes
1 answer
567 views

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 ...
MrLister's user avatar
  • 729
1 vote
1 answer
192 views

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 ...
matth3wV's user avatar
0 votes
1 answer
200 views

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 ...
Andres Chaparro's user avatar
0 votes
1 answer
486 views

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 ...
Yashaswat's user avatar
2 votes
0 answers
62 views

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 ...
Leroy Jeslyn's user avatar
0 votes
1 answer
196 views

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....
gpu-try-deepface's user avatar
0 votes
1 answer
130 views

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. => ...
Rishav Raj's user avatar
1 vote
2 answers
1k views

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 = {&...
Bernardo Bevilaqua's user avatar
0 votes
1 answer
668 views

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 ...
Aniket Pawar's user avatar
0 votes
2 answers
2k views

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 ...
Baraa 's user avatar
  • 75
0 votes
0 answers
219 views

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 ...
Alvian Faiz's user avatar
0 votes
0 answers
741 views

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 ...
qasim's user avatar
  • 13
0 votes
0 answers
310 views

I have being trying to use DeepFace module in python, to detect live video face with a photo, for which i used this Python code import cv2 from deepface import DeepFace # URL of the phone's camera ...
Manas Bisht's user avatar
0 votes
1 answer
396 views

I am reading deep face library paper,"LightFace: A Hybrid Deep Face Recognition Framework". Q1. Is there code to explain how to determine the distance threshold? The decision tree(C4.5) ...
Luckydipper's user avatar
0 votes
1 answer
177 views

I wrote this function but is some times give me this error "Authenticated as Muhammad Zair [ WARN:[email protected]] global cap_msmf.cpp:1768 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. ...
ZR07's user avatar
  • 1
0 votes
1 answer
47 views

ImportError: DLL load failed while importing _pywrap_tf2: A dynamic link library (DLL) initialization routine failed. I find the above Error in package. I don't understand why is error happening. ...
Shoiab Ahmed's user avatar
0 votes
0 answers
943 views

I'm using mediapipe to detect faces in a web camera live stream. I have a function to capture 50 face images from the stream and save it locally. then save all the facial features to a pkl file using ...
Chamod Abeyrathne's user avatar
0 votes
1 answer
636 views

Unable to import deepface in Python I am currently using Pycharm on macbook. Virtual environment is already activated and still getting the below error. Can anyone please help me here. Python 3.9 ...
Rishabh Arora's user avatar
1 vote
1 answer
376 views

Here's my code import cv2 import threading from deepface import DeepFace cap = cv2.VideoCapture(0,cv2.CAP_DSHOW) cap.set(cv2.CAP_PROP_FRAME_WIDTH,640) cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480 ) counter ...
Sakshi Mourya's user avatar
1 vote
0 answers
148 views

Is anyone here familiar with deepface library? I was following this article to start my adventures into facial recognition, but I ran into an issue that I can't seem to resolve (due to my lack of ...
doejoe's user avatar
  • 175
0 votes
2 answers
2k views

I have 1000 classes, each containing 10 images. For face recognition with my dataset, would it be more beneficial to use a pretrained model or to perform fine-tuning? Should I retrain from scratch, ...
user23845312's user avatar
-2 votes
1 answer
880 views

I am running a simple script within my Anaconda virtual env from deepface import DeepFace face_analysis = DeepFace.analyze(img_path = "face3.jpeg") print(face_analysis) But I keep getting ...
x89's user avatar
  • 3,534
0 votes
1 answer
3k views

I have written this streamlit code to detect whether a person is wearing a mask or not and if not then display their estimated age and gender using DeepFace library. I've used tensorflow to use pre-...
Probal Kar's user avatar
2 votes
3 answers
3k views

I installed deepface via pip: pip install deepface and running very simple code sample: from deepface import DeepFace result = DeepFace.verify(model_name='VGG-Face', detector_backend='yolov8', ...
Scott's user avatar
  • 5,966
0 votes
0 answers
272 views

I tried to install DeepFace on my Windows device, using Python 3.9, but it gives me this error: C:\Windows\System32>pip install deepface Collecting deepface Using cached deepface-0.0.83-py3-none-...
Kishiroh's user avatar
0 votes
0 answers
133 views

I have installed opencv-python version 4.9.0.80 and deepface version 0.0.81. and it seems to cause an issue when I try to run DeepFace.analyze() with SSD detector backend: DeepFace.analyze('Img.jpg', [...
Dai's user avatar
  • 75
0 votes
1 answer
654 views

I'm running deepface model for face recognition and chose YOLOV8 for detecting face. Here is the code I'm running: from deepface import DeepFace result = DeepFace.verify(model_name='VGG-Face', ...
Scott's user avatar
  • 5,966
-5 votes
1 answer
241 views

this is my code from keras_vggface.vggface import VGGFace model = VGGFace(model='resnet50')type here and this is the Traceback `` ImportError Traceback (most recent call ...
Nabaa Alaa's user avatar
0 votes
1 answer
850 views

I'm using deep face for recognition but the accuracy is not good so I try to implement the media pipe in which I extract the landmarks so I give this to the deep face for better accuracy. Is there any ...
muhammad hamza's user avatar
0 votes
4 answers
803 views

I'm trying to install deepface library via pip but it fails with AssertionError. My system specs are: OS : POP-OS 22.04 Python: Python-3.10.12 Pip: pip-22.0.2 update 01 I did the following with pip: ...
Musabbir Arrafi's user avatar
0 votes
0 answers
31 views

I am using the following repository -https://github.com/slashtechno/wyzely-detect. This works okay and face is correctly recognised until more than one face is seen in th frame, the program stops and ...
Lakshay Lamba's user avatar
2 votes
1 answer
432 views

I have been trying to run the following snippet of code for deepface for comparing two images containing a face. Python code: face_similarity.py import base64 from io import BytesIO from PIL import ...
Ashutosh Gandhi's user avatar
1 vote
2 answers
2k views

I am trying to build a real-time face detector that should meet these requirements: Fast As much accurate as possible even in darker conditions of the enviroment I can easly add a face recognition ...
giacomomaraglino's user avatar
0 votes
1 answer
2k views

I have successfully tested the stream function from DeepFace library to get real time face detection and analysis data from my webcam. I call this method: from deepface import DeepFace DeepFace....
giacomomaraglino's user avatar
0 votes
0 answers
31 views

from deepface import DeepFace # Provide the correct path to your image file img_path = "happy_face_woman.png" # Analyze the face in the image face_analysis = DeepFace.analyze(img_path=...
Nick White's user avatar
1 vote
1 answer
2k views

I am trying to use the DeepFace python library to do face recognition and analysis on long videos: https://github.com/serengil/deepface. Using the library out of the box, I am able to get desired ...
jameszp's user avatar
  • 57
-1 votes
2 answers
107 views

I am having trouble displaying the "dominant_emotion" text from the 'prediction' on an image using deepface and cv2 import cv2 import matplotlib.pyplot as plt from deepface import DeepFace ...
May Mammaz's user avatar
1 vote
1 answer
1k views

Below is what I get after trying to run deepfacelive on my Anaconda. I am using a windows computer. (tudazdeep) C:\Users\owner\Desktop\DeepFaceLive-master>python main.py run DeepFaceLive--userdata-...
tudaz's user avatar
  • 11
0 votes
0 answers
232 views

I try to install deepface and got a lot of red messages. the error msg in the end: ERROR: Could not build wheels for opencv-contrib-python, which is required to install pyproject.toml-based projects. ...
Loran Zur's user avatar
1 vote
1 answer
373 views

I want to use DeepFace DlibResNet but it gives error. I have already installed dlib 19.24.0 and deepface 0.0.79. My python version is 3.10.5 and I use Jupiyter Lab. import dlib from deepface import ...
Mohammad Moosavi's user avatar
1 vote
2 answers
1k views

I have this code: from deepface import DeepFace image1 = "test.jpeg" DeepFace.find(img_path = image1, db_path = "faces", enforce_detection = ...
eitan's user avatar
  • 29
1 vote
1 answer
650 views

I am using the DeepFace library to analyze emotions in a video. Here is the relevant code: import cv2 from deepface import DeepFace cap = cv2.VideoCapture("video.mp4") prev_emotion = None ...
obk's user avatar
  • 33
2 votes
1 answer
1k views

I am following a youtube tutorial (https://www.youtube.com/watch?v=pQvkoaevVMk), My camera isn't activating once the code is run, i tried googling answer but cant seem to figure it out. I am new to ...
hakopian_'s user avatar
-1 votes
1 answer
582 views

I was working on a Face Recognition project using deepface and openCV (cv2) modules, but methods of cv2 are not working/being recognized by VScode, neither the auto-completion is working. I have ...
Prav_1311's user avatar
1 vote
1 answer
652 views

I want to test if two pictures belong to the same person using Google Cloud Function. The function would recieve the images in base64 format. During runtime, these images would be converted to JPEG ...
AbdullahHabib's user avatar
0 votes
3 answers
1k views

when I use DeepFace.analyze the type of the output variable is ''list'' instead of ''dict''. I don't know where the problem is exactly, you can see my code below import cv2 ## pip install opencv-...
titouni salem's user avatar
1 vote
0 answers
120 views

I would like to use serengil/deepface library to process a bunch of images. However, some of the extensions are not processed by deepface such as CR2 files. Some of the files in the db_path are also ...
fobik35911's user avatar