-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoneType' object has no attribute 'groups' when using YoloV8 on deepface==0.0.84 #1022
Comments
Need detailed exception message please Normally, exception thrown module and line info should be printed. As I understand, you customize something because these are not standard output of deepface. |
When I test that backend as DeepFace.analyze(img_path=img_path, detector_backend="yolov8") Then I am having a successful response. [{'emotion': {'angry': 0.27702577454904015,
'disgust': 1.6584374963028672e-06,
'fear': 5.269103613165452e-05,
'happy': 58.46902829039434,
'sad': 0.10684493573024102,
'surprise': 0.004627124696059116,
'neutral': 41.14242388515757},
'dominant_emotion': 'happy',
'region': {'x': 233, 'y': 79, 'w': 152, 'h': 216},
'face_confidence': 0.863529622554779,
'age': 30,
'gender': {'Woman': 99.9902606010437, 'Man': 0.009742558904690668},
'dominant_gender': 'Woman',
'race': {'asian': 0.2046308602172649,
'indian': 0.3006282674523155,
'black': 0.02210449442703989,
'white': 83.31937094446248,
'middle eastern': 7.54583746468052,
'latino hispanic': 8.607432014193058},
'dominant_race': 'white'}] So, your case may be related to the input image you are feeding (share with me if it is not private), or depending on your customization. |
That error message should come from regex, and regex is not being used in deepface. You may get it from something different than deepface? |
Closed because exception message is not coming from deepface |
Here's a bit more information about the error:
|
A hack to solve this: You can download them and put them on your equivalent of this path: Or to be sure, print it in Yolo.py
|
Closed with PR - #1038 Thank you @Any-Winter-4079 |
@serengil can you release a new version of DeepaFace on Pypi? |
I will do it soon, meanwhile you can use the source code as $ git clone https://github.com/serengil/deepface.git
$ cd deepface
$ pip install -e . |
Hi @serengil,
Is there an issue when analyzing with Yolo v8?
code sample:
analysis = DeepFace.analyze(img, actions=('emotion'), enforce_detection=False, detector_backend=['yolo_, silent=True)
Logs:
I could not find anywhere on the code that groups might be used.
The text was updated successfully, but these errors were encountered: