aboutsummaryrefslogtreecommitdiff
path: root/misc/py-facenet-pytorch
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-12-27 10:53:33 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-12-27 10:54:07 +0000
commit16aa06c4d8c4f084a7bdf772a4ad5e8abac91701 (patch)
tree6a73b578fde84fa071861f70d3467fccf8fc5798 /misc/py-facenet-pytorch
parent2717de7aefde69279e0063d3bdd47b7411240fca (diff)
downloadports-16aa06c4d8c4f084a7bdf772a4ad5e8abac91701.tar.gz
ports-16aa06c4d8c4f084a7bdf772a4ad5e8abac91701.zip
misc/py-facenet-pytorch: New port: Pretrained PyTorch face detection and recognition models
Diffstat (limited to 'misc/py-facenet-pytorch')
-rw-r--r--misc/py-facenet-pytorch/Makefile24
-rw-r--r--misc/py-facenet-pytorch/distinfo3
-rw-r--r--misc/py-facenet-pytorch/pkg-descr2
3 files changed, 29 insertions, 0 deletions
diff --git a/misc/py-facenet-pytorch/Makefile b/misc/py-facenet-pytorch/Makefile
new file mode 100644
index 000000000000..ac1010f5fdb3
--- /dev/null
+++ b/misc/py-facenet-pytorch/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= facenet-pytorch
+DISTVERSION= 2.5.3
+CATEGORIES= misc # machine-learning
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pretrained PyTorch face detection and recognition models
+WWW= https://github.com/timesler/facenet-pytorch
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}torchvision>0:misc/py-torchvision@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-facenet-pytorch/distinfo b/misc/py-facenet-pytorch/distinfo
new file mode 100644
index 000000000000..87e5810bf8c9
--- /dev/null
+++ b/misc/py-facenet-pytorch/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703671850
+SHA256 (facenet-pytorch-2.5.3.tar.gz) = 98cc5b42a48f837c023eb92f2a571cd4ac6a46687c5e71b9e99b491087273e2b
+SIZE (facenet-pytorch-2.5.3.tar.gz) = 1885286
diff --git a/misc/py-facenet-pytorch/pkg-descr b/misc/py-facenet-pytorch/pkg-descr
new file mode 100644
index 000000000000..43eb992acdd2
--- /dev/null
+++ b/misc/py-facenet-pytorch/pkg-descr
@@ -0,0 +1,2 @@
+facenet-pytorch is a collection of pretrained PyTorch face detection (MTCNN) and
+facial recognition (InceptionResnet) models.