python310Packages.clean-fid: init at 0.1.35

This commit is contained in:
Martin Weinelt 2023-05-16 13:56:21 +02:00
parent 1d77f3b727
commit a1a072ee66
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ 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;
};
}

View file

@ -1833,6 +1833,8 @@ self: super: with self; {
cle = callPackage ../development/python-modules/cle { };
clean-fid = callPackage ../development/python-modules/clean-fid { };
cleo = callPackage ../development/python-modules/cleo { };
clevercsv = callPackage ../development/python-modules/clevercsv { };