56 lines
989 B
Nix
56 lines
989 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
|
|
# dependencies
|
|
numpy,
|
|
pillow,
|
|
requests,
|
|
scipy,
|
|
torch,
|
|
torchvision,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "clean-fid";
|
|
version = "0.1.35";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GaParmar";
|
|
repo = "clean-fid";
|
|
rev = "c8ffa420a3923e8fd87c1e75170de2cf59d2644b";
|
|
hash = "sha256-fqBU/TmCXDTPU3KTP0+VYQoP+HsT2UMcZeLzQHKD9hw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
pillow
|
|
requests
|
|
scipy
|
|
torch
|
|
torchvision
|
|
tqdm
|
|
];
|
|
|
|
pythonImportsCheck = [ "cleanfid" ];
|
|
|
|
# no tests1
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "PyTorch - FID calculation with proper image resizing and quantization steps [CVPR 2022]";
|
|
homepage = "https://www.cs.cmu.edu/~clean-fid/";
|
|
downloadPage = "https://github.com/GaParmar/clean-fid";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.tts ];
|
|
};
|
|
}
|