mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
51 lines
837 B
Nix
51 lines
837 B
Nix
{
|
|
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;
|
|
};
|
|
}
|