Skip to content
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

Fix content-type not found error #273

Closed
wants to merge 1 commit into from

Conversation

hungpham3112
Copy link

@hungpham3112 hungpham3112 commented Jun 4, 2023

See https://stackoverflow.com/questions/37339644/content-type-is-blank-in-the-headers-of-some-requests for more information

Need to check before merge.

This PR will solve the problem in serengil/deepface#769

@wkentaro
Copy link
Owner

Looking at the PR in deepface, seems it's env problem, so closing for now.

@wkentaro wkentaro closed this Jan 20, 2024
@hungpham3112
Copy link
Author

Looking at the PR in deepface, seems it's env problem, so closing for now.

Hi @wkentaro . Can you look at the PR again? Deepface using gdown for downloading from google drive. This is a bug with gdown, not deepface. They are not related to this problem so they already closed issue.

@wkentaro
Copy link
Owner

@hungpham3112 Okay. Can you give a command to reproduce this?

@hungpham3112
Copy link
Author

@wkentaro. I used deepface as a way to reproduce the problem.

Step 1: Download deepface
pip install deepface dlib
Step 2: Run below code

  from deepface import DeepFace
  detected_face = DeepFace.extract_faces("./obama.jpg", detector_backend = 'dlib')

and see the problem. The code in gdown default assumes ["content-type"] is always available.

@wkentaro
Copy link
Owner

wkentaro commented Jan 25, 2024

@hungpham3112 I was able to reproduce it. Fixing by #302

gdown http://dlib.net/files/shape_predictor_5_face_landmarks.dat.bz2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants