blob: 32ca0b0caeec1d6013a0f44e89688fea22c12837 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
torch,
}:
buildPythonPackage rec {
pname = "pytorch-msssim";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "VainF";
repo = "pytorch-msssim";
tag = "v${version}";
hash = "sha256-bghglwQhgByC7BqbDvImSvt6edKF55NLYEPjqmmSFH8=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [ torch ];
pythonImportsCheck = [ "pytorch_msssim" ];
# This test doesn't have (automatic) tests
doCheck = false;
meta = {
description = "Fast and differentiable MS-SSIM and SSIM for pytorch";
homepage = "https://github.com/VainF/pytorch-msssim";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|