diff --git a/.gitignore b/.gitignore index 239af1b..7132b94 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,7 @@ dist/ *.user BiStudent.Server/seed/*.local.csv BiStudent.Server/App_Data/ + +# Модель SFace скачивается при сборке (см. BiStudent.Core.csproj) +BiStudent.Core/Models/face_recognition_sface_2021dec.onnx +BiStudent.Core/Models/*.download diff --git a/BiStudent.Core/BiStudent.Core.csproj b/BiStudent.Core/BiStudent.Core.csproj index 6f40891..ecd1b40 100644 --- a/BiStudent.Core/BiStudent.Core.csproj +++ b/BiStudent.Core/BiStudent.Core.csproj @@ -8,9 +8,35 @@ + + + + $(MSBuildThisFileDirectory)Models\ + $(ModelsDirectory)face_recognition_sface_2021dec.onnx + 0BA9FBFA01B5270C96627C4EF784DA859931E02F04419C829E83484087C34E79 + https://media.githubusercontent.com/media/opencv/opencv_zoo/main/models/face_recognition_sface/face_recognition_sface_2021dec.onnx + https://huggingface.co/opencv/face_recognition_sface/resolve/main/face_recognition_sface_2021dec.onnx + - + + + + + + + + + + + + + + + diff --git a/BiStudent.Core/Models/face_recognition_sface_2021dec.onnx b/BiStudent.Core/Models/face_recognition_sface_2021dec.onnx deleted file mode 100644 index 6767be0..0000000 Binary files a/BiStudent.Core/Models/face_recognition_sface_2021dec.onnx and /dev/null differ diff --git a/README.md b/README.md index 12634ee..1079674 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ Вход в клиент: сервер `http://localhost:5080`, логин `teacher`, пароль `teacher123`. +Модель распознавания SFace (38 МБ) не хранится в репозитории: при первой сборке её скачивает `BiStudent.Core.csproj` из OpenCV Zoo (запасной адрес — Hugging Face) и проверяет по SHA-256. Без интернета положите файл `face_recognition_sface_2021dec.onnx` в `BiStudent.Core/Models` вручную. Детектор YuNet (0,2 МБ) лежит в репозитории. + Запуск вручную: ```powershell