Merge pull request #277143 from lucasew/python/facenet-pytorch
python3Packages.facenet-pytorch: init at 2.5.3
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, torchvision
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "facenet-pytorch";
|
||||
version = "2.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-mMxbQqSPg3wCPrkvKlcc1KxqRmh8XnG56ZtJEIcnPis=";
|
||||
};
|
||||
|
||||
doCheck = false; # pypi version doesn't ship with tests
|
||||
|
||||
pythonImportsCheck = ["facenet_pytorch"];
|
||||
|
||||
propagatedBuildInputs = [ pillow torchvision ];
|
||||
|
||||
meta = {
|
||||
description = "Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models";
|
||||
homepage = "https://github.com/timesler/facenet-pytorch";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.lucasew ];
|
||||
};
|
||||
}
|
||||
@@ -3835,6 +3835,8 @@ self: super: with self; {
|
||||
|
||||
face-recognition = callPackage ../development/python-modules/face-recognition { };
|
||||
|
||||
facenet-pytorch = callPackage ../development/python-modules/facenet-pytorch { };
|
||||
|
||||
face-recognition-models = callPackage ../development/python-modules/face-recognition/models.nix { };
|
||||
|
||||
factory-boy = callPackage ../development/python-modules/factory-boy { };
|
||||
|
||||
Reference in New Issue
Block a user