Google Colabortory: невозможно открыть landmarks.dat - PullRequest
0 голосов
/ 19 марта 2019

Я новичок и в настоящее время пробую Python Notebook https://github.com/TessFerrandez/research-papers/tree/master/facenet в Google Colab Laboratory.

Я добавил

!pip install face-recognition
!git clone https://github.com/TessFerrandez/research-papers.git
%cd research-papers/facenet

в начале ноутбука, чтобы я мог импортировать нужные утилиты.

Однако в одной из ячеек ниже я не могу запустить код. Я получаю это сообщение об ошибке:

RuntimeError                                
Traceback (most recent call last)
ipython-input-14-45bae69bfbbe in <module>()
15 # Initialize the OpenFace face alignment utility
---> 16 alignment = AlignDlib('models/landmarks.dat')
/content/research-papers/facenet/research-papers/facenet/align.py in __init__(self, facePredictor)    
88         self.detector = dlib.get_frontal_face_detector()
---> 89         self.predictor = dlib.shape_predictor(facePredictor)
RuntimeError: Unable to open models/landmarks.dat

Знаете ли вы, где найти models / landmarks.dat, чтобы AlignDlib не выдавал ошибку?

Нужно ли устанавливать openface в коллаборацию Google или загружать модель откуда-то?

...