diff options
author | Alexey Yushkin <636808@mail.ru> | 2023-04-04 14:29:49 +0000 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2023-04-04 15:26:22 +0000 |
commit | 17f8596092e5827781425f1fa1bde4c69cc46941 (patch) | |
tree | 93228320e0da4826cbb22a49427c7e132d1ab4ac | |
parent | b0955319f764587697ae7b5092e5df6261e49245 (diff) | |
download | ports-17f8596092e5827781425f1fa1bde4c69cc46941.tar.gz ports-17f8596092e5827781425f1fa1bde4c69cc46941.zip |
misc/dlib-models: Model files for the science/dlib-cpp library.
Sponsored by: Serenity Cybersecurity, LLC
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/dlib-models/Makefile | 51 | ||||
-rw-r--r-- | misc/dlib-models/distinfo | 3 | ||||
-rw-r--r-- | misc/dlib-models/pkg-descr | 3 |
4 files changed, 58 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index b45123492196..3f2a19679c41 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -82,6 +82,7 @@ SUBDIR += digitemp SUBDIR += dijo SUBDIR += dive + SUBDIR += dlib-models SUBDIR += dnetc SUBDIR += dotenv-linter SUBDIR += dtach diff --git a/misc/dlib-models/Makefile b/misc/dlib-models/Makefile new file mode 100644 index 000000000000..09e91e086f5b --- /dev/null +++ b/misc/dlib-models/Makefile @@ -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> diff --git a/misc/dlib-models/distinfo b/misc/dlib-models/distinfo new file mode 100644 index 000000000000..9ba435cda5f6 --- /dev/null +++ b/misc/dlib-models/distinfo @@ -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 diff --git a/misc/dlib-models/pkg-descr b/misc/dlib-models/pkg-descr new file mode 100644 index 000000000000..d8e44f9bbd8a --- /dev/null +++ b/misc/dlib-models/pkg-descr @@ -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. |