forked from ostris/ai-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrolnet-aux.nix
57 lines (49 loc) · 1012 Bytes
/
controlnet-aux.nix
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
50
51
52
53
54
55
56
57
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, filelock
, huggingface-hub
, opencv-python
, torchvision
, einops
, scikit-image
, timm
, pythonRelaxDepsHook
, importlib-metadata
}:
buildPythonPackage rec {
pname = "controlnet-aux";
version = "0.0.9";
format = "pyproject";
src = fetchPypi {
pname = "controlnet_aux";
inherit version;
hash = "sha256-bCg1Lm/pszJNaxKI2U0cJYbG4vyfWN+eRyl+pqhv1WA=";
};
propagatedBuildInputs = [
filelock
huggingface-hub
opencv-python
torchvision
einops
scikit-image
timm
importlib-metadata
];
pythonRelaxDeps = [ "timm" ];
nativeBuildInputs = [
setuptools
wheel
pythonRelaxDepsHook
];
pythonImportsCheck = [ "controlnet_aux" ];
pythonRemoveDeps = [ "opencv-python" ];
meta = with lib; {
description = "Auxillary models for controlnet";
homepage = "https://pypi.org/project/controlnet-aux/";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}