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

Stop at "Downloading the face detection CNN. Please wait..." #155

Closed
Sally-fyk opened this issue Sep 19, 2019 · 6 comments
Closed

Stop at "Downloading the face detection CNN. Please wait..." #155

Sally-fyk opened this issue Sep 19, 2019 · 6 comments
Labels

Comments

@Sally-fyk
Copy link

Traceback (most recent call last):
File "detlandmark_imgs.py", line 25, in
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False)
File "/data_1/server/app/anaconda/lib/python3.7/site-packages/face_alignment/api.py", line 66, in init
self.face_detector = face_detector_module.FaceDetector(device=device, verbose=verbose)
File "/data_1/server/app/anaconda/lib/python3.7/site-packages/face_alignment/detection/sfd/sfd_detector.py", line 39, in init
os.path.join(path_to_temp_detector))
File "/data_1/server/app/anaconda/lib/python3.7/urllib/request.py", line 276, in urlretrieve
block = fp.read(bs)
File "/data_1/server/app/anaconda/lib/python3.7/http/client.py", line 447, in read
n = self.readinto(b)
File "/data_1/server/app/anaconda/lib/python3.7/http/client.py", line 491, in readinto
n = self.fp.readinto(b)
File "/data_1/server/app/anaconda/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/data_1/server/app/anaconda/lib/python3.7/ssl.py", line 1052, in recv_into
return self.read(nbytes, buffer)
File "/data_1/server/app/anaconda/lib/python3.7/ssl.py", line 911, in read
return self._sslobj.read(len, buffer)

@vinayak618
Copy link

Please download the face detector model from here and place that in working folder of your inference script and run the model

@Sally-fyk
Copy link
Author

Please download the face detector model from here and place that in working folder of your inference script and run the model

Thank you very much! The problem is solved

@mangotuanzi
Copy link

Please download the face detector model from here and place that in working folder of your inference script and run the model

Thank you very much! The problem is solved

How do I run the model? Where should I place it in?

@yfq512
Copy link

yfq512 commented Jun 24, 2020

@Sally-fyk Hi, I has down this model, how can run it ? where put it in? need your help!!!

@Sally-fyk
Copy link
Author

Sally-fyk commented Jun 24, 2020

@Sally-fyk Hi, I has down this model, how can run it ? where put it in? need your help!!!

好久以前的事了,如果没记错的话是放在~/.face_alignment 这个文件夹(或者类似的)下面。最好看一下anaconda/lib/python3.7/site-packages/face_alignment/api.py这个文件,找一下具体的下载位置

@Sally-fyk Sally-fyk reopened this Jun 24, 2020
@Sally-fyk
Copy link
Author

Please download the face detector model from here and place that in working folder of your inference script and run the model
Thank you very much! The problem is solved

How do I run the model? Where should I place it in?

maybe “~/.face_alignment/" or somewhere. I can't remember, but you can search "anaconda/lib/python3.7/site-packages/face_alignment/api.py"for details.

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

No branches or pull requests

5 participants