blob: 0a2e15055ddb825a97b873ce0437c9a790a52416 (
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
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
torch,
hydra-core,
iopath,
numpy,
pillow,
torchvision,
tqdm,
}:
buildPythonPackage rec {
pname = "sam2";
version = "1.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-fg6iUtQ8ENhT46z84LV3CsaDwwSBvW3jETAOnUT0W3Q=";
};
build-system = [
setuptools
torch
];
pythonImportsCheck = [ "sam2" ];
dependencies = [
hydra-core
iopath
numpy
pillow
torch
torchvision
tqdm
];
meta = {
description = "SAM 2: Segment Anything in Images and Videos";
homepage = "https://github.com/facebookresearch/sam2";
license = with lib.licenses; [
bsd3
asl20
];
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
platforms = lib.platforms.all;
};
}
|