132 lines
2.6 KiB
TOML
132 lines
2.6 KiB
TOML
[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_*"
|