1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.94k stars 1.33k forks source link

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

Closed Sally-fyk closed 3 years ago

Sally-fyk commented 4 years ago

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 commented 4 years ago

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

Sally-fyk commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

Sally-fyk commented 4 years ago

@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 commented 4 years ago

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.