2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pillow,
|
|
|
|
torchvision,
|
|
|
|
lib,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "facenet_pytorch" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pillow
|
|
|
|
torchvision
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|