-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
KeyError: 'content-type' when extracting face with dlib #769
Comments
This is covered here: https://github.com/serengil/deepface/blob/master/deepface/basemodels/DlibResNet.py#LL30C21-L30C43 And the target url is http://dlib.net/files/dlib_face_recognition_resnet_model_v1.dat.bz2 It is still alive. It seems you cannot access that url. Check your firewall or proxy. |
The problem is http, I downloaded with firefox and it blocked. Is there any way to handle that with Python? |
This is not happening in my env. Sorry. |
Can you provide more information about your environment? Are you using Linux or Windows? |
Tested it on mac & debian. |
I found the problem and can fix this with PR |
PRs are of course welcome but this is because of your env, not a bug. |
I am also experiencing this issue on MacOS. I am able to download from the link in my browser, but not through the code. The PR from @hungpham3112 fixed the issue – what is the harm in accepting his approach, as this |
@kennedyjosh Can you look at the PR wkentaro/gdown#302 if it solve downloading problem? |
Today is the first time I use this package, I want to extract the face from the image.
Here is my code:
detected_face = DeepFace.extract_faces("./obama.jpg", detector_backend = 'dlib')
But then the issue appeared:
![image](https://private-user-images.githubusercontent.com/75968004/243163725-fe0cf4c1-5442-4c6b-996e-3308d943d336.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzAzMzYsIm5iZiI6MTczOTI3MDAzNiwicGF0aCI6Ii83NTk2ODAwNC8yNDMxNjM3MjUtZmUwY2Y0YzEtNTQ0Mi00YzZiLTk5NmUtMzMwOGQ5NDNkMzM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEwMzM1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1NzVjNjE3Y2FiZWY0MGE4OGE0ODgyYTlmZDY1MjVmN2M1MjdmNjQ1ZTQ4NjhhZGM5ZTc0MjhkMzI3NjdkMzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EANUEHs0Vs5xJkHBqPNLLe_Ce9LKeFydXZy2NoB--NE)
It seems that deepface was trying to download the model but it can't
OS: Pop-OS 22.04
Env: conda
Editor: jupyter notebook
The text was updated successfully, but these errors were encountered: