blob: d88bbcc7105e40c41c8702afacbb57cc512fa2d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
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;
};
}
|