1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

misc/dlib-models: Model files for the science/dlib-cpp library.

Sponsored by:	Serenity Cybersecurity, LLC
This commit is contained in:
Alexey Yushkin 2023-04-04 17:29:49 +03:00 committed by Gleb Popov
parent b0955319f7
commit 17f8596092
4 changed files with 58 additions and 0 deletions

View File

@ -82,6 +82,7 @@
SUBDIR += digitemp
SUBDIR += dijo
SUBDIR += dive
SUBDIR += dlib-models
SUBDIR += dnetc
SUBDIR += dotenv-linter
SUBDIR += dtach

51
misc/dlib-models/Makefile Normal file
View File

@ -0,0 +1,51 @@
PORTNAME= dlib-models
PORTVERSION= 20210513
CATEGORIES= misc
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Trained model files for dlib example programs
WWW= https://github.com/davisking/dlib-models
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= davisking
GH_PROJECT= dlib-models
GH_TAGNAME= daf943f781
NO_BUILD= yes
NO_ARCH= yes
MODELS= age-predictor/dnn_age_predictor_v1.dat \
gender-classifier/dnn_gender_classifier_v1.dat \
dlib_face_recognition_resnet_model_v1.dat \
mmod_dog_hipsterizer.dat \
mmod_front_and_rear_end_vehicle_detector.dat \
mmod_human_face_detector.dat \
mmod_rear_end_vehicle_detector.dat \
resnet34_1000_imagenet_classifier.dnn \
resnet50_1000_imagenet_classifier.dnn \
shape_predictor_5_face_landmarks.dat \
shape_predictor_68_face_landmarks.dat \
shape_predictor_68_face_landmarks_GTX.dat
.for f in ${MODELS}
PLIST_FILES+= ${DATADIR}/${f}
.endfor
pre-install:
.for f in ${MODELS}
${BZIP2_CMD} -d ${WRKSRC}/${f}.bz2
${RM} ${f}.bz2
.endfor
do-install:
cd ${WRKSRC}/ && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
${FIND} ${STAGEDIR}${DATADIR} -name '*.cpp' -delete
${RM} ${STAGEDIR}${DATADIR}/LICENSE
${RM} ${STAGEDIR}${DATADIR}/README.md
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1680618386
SHA256 (davisking-dlib-models-20210513-daf943f781_GH0.tar.gz) = e5acfad2955ec53bd34114fe518d6ca51cdc23040a10ace155631964624fc8cd
SIZE (davisking-dlib-models-20210513-daf943f781_GH0.tar.gz) = 340370860

View File

@ -0,0 +1,3 @@
Dlib is a modern C++ toolkit containing machine learning algorithms
and tools for creating complex software in C++ to solve real world
problems. This packages provides trained models for various dlib algorithms.