i m so sad

This commit is contained in:
2024-12-10 11:35:13 +08:00
parent 9286a9de68
commit 02ae03d147
4 changed files with 70 additions and 2 deletions
+7
View File
@@ -75,3 +75,10 @@ download(face_label_url,face_label_path)
# 解压数据集
decompress(os.path.join(face_dataset_path,face_dataset_url.split('/')[-1]),face_dataset_path)
decompress(os.path.join(face_label_path,face_label_url.split('/')[-1]),face_label_path)
# 下载ResNet模型
model_url1='https://github.com/davisking/dlib-models/raw/master/shape_predictor_68_face_landmarks.dat'
model_url2='https://github.com/davisking/dlib-models/raw/master/dlib_face_recognition_resnet_model_v1.dat'
model_path='models/'
download(model_url1,model_path)
download(model_url2,model_path)