depot/third_party/nixpkgs/pkgs/development/python-modules/clean-fid/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

50 lines
877 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# dependencies
, numpy
, pillow
, requests
, scipy
, torch
, torchvision
, tqdm
}:
buildPythonPackage rec {
pname = "clean-fid";
version = "0.1.35";
format = "setuptools";
src = fetchFromGitHub {
owner = "GaParmar";
repo = "clean-fid";
rev = "c8ffa420a3923e8fd87c1e75170de2cf59d2644b";
hash = "sha256-fqBU/TmCXDTPU3KTP0+VYQoP+HsT2UMcZeLzQHKD9hw=";
};
propagatedBuildInputs = [
numpy
pillow
requests
scipy
torch
torchvision
tqdm
];
pythonImportsCheck = [
"cleanfid"
];
# no tests1
doCheck = false;
meta = with lib; {
description = "PyTorch - FID calculation with proper image resizing and quantization steps [CVPR 2022]";
homepage = "https://github.com/GaParmar/clean-fid";
license = licenses.mit;
maintainers = teams.tts.members;
};
}