504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
29 lines
686 B
Nix
29 lines
686 B
Nix
{ 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 ];
|
|
};
|
|
}
|