File size: 2,662 Bytes
fe8202e |
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sam3"
dynamic = ["version"]
description = "SAM3 (Segment Anything Model 3) implementation"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Meta AI Research"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"timm>=1.0.17",
"numpy==1.26",
"tqdm",
"ftfy==6.1.1",
"regex",
"iopath>=0.1.10",
"typing_extensions",
"huggingface_hub",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"black==24.2.0",
"ufmt==2.8.0",
"ruff-api==0.1.0",
"usort==1.0.2",
"gitpython==3.1.31",
"yt-dlp",
"pandas",
"opencv-python",
"pycocotools",
"numba",
"python-rapidjson",
]
notebooks = [
"matplotlib",
"jupyter",
"notebook",
"ipywidgets",
"ipycanvas",
"ipympl",
"pycocotools",
"decord",
"opencv-python",
"einops",
"scikit-image",
"scikit-learn",
]
train = [
"hydra-core",
"submitit",
"tensorboard",
"zstandard",
"scipy",
"torchmetrics",
"fvcore",
"fairscale",
"scikit-image",
"scikit-learn",
]
[project.urls]
"Homepage" = "https://github.com/facebookresearch/sam3"
"Bug Tracker" = "https://github.com/facebookresearch/sam3/issues"
[tool.setuptools]
packages = ["sam3", "sam3.model"]
[tool.setuptools.dynamic]
version = {attr = "sam3.__version__"}
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.usort]
first_party_detection = false
[tool.ufmt]
formatter = "ruff-api"
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = [
"torch.*",
"torchvision.*",
"timm.*",
"numpy.*",
"PIL.*",
"tqdm.*",
"ftfy.*",
"regex.*",
"iopath.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
|