python310Packages.clean-fid: init at 0.1.35
This commit is contained in:
parent
1d77f3b727
commit
a1a072ee66
50
pkgs/development/python-modules/clean-fid/default.nix
Normal file
50
pkgs/development/python-modules/clean-fid/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue