Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2023 15:26:34 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 17f8596092e5 - main - misc/dlib-models: Model files for the science/dlib-cpp library.
Message-ID:  <202304041526.334FQYNe097498@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=17f8596092e5827781425f1fa1bde4c69cc46941

commit 17f8596092e5827781425f1fa1bde4c69cc46941
Author:     Alexey Yushkin <636808@mail.ru>
AuthorDate: 2023-04-04 14:29:49 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-04-04 15:26:22 +0000

    misc/dlib-models: Model files for the science/dlib-cpp library.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 misc/Makefile              |  1 +
 misc/dlib-models/Makefile  | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 misc/dlib-models/distinfo  |  3 +++
 misc/dlib-models/pkg-descr |  3 +++
 4 files changed, 58 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304041526.334FQYNe097498>