-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (59 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
69 lines (59 loc) · 1.8 KB
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "samexporter"
version = "0.4.6"
description = "Exporting Segment Anything models ONNX format"
authors = [
]
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"onnx==1.20.1",
"onnxruntime==1.24.2",
"opencv-python==4.11.0.86",
"segment-anything==1.0",
"torch==2.10.0",
"torchvision==0.25.0",
"timm==0.9.2",
"numpy==1.26.4",
"onnxscript==0.6.2",
"osam", # CLIP tokeniser for SAM3 text prompts
]
[project.urls]
"Homepage" = "https://github.com/vietanhdev/samexporter"
"Bug Tracker" = "https://github.com/vietanhdev/samexporter/issues"
[project.optional-dependencies]
# onnxsim has no Windows wheel; the source tarball exceeds Windows 260-char
# path limits. Install with: pip install samexporter[export]
export = ["onnxsim==0.5.0"]
dev = ["ruff", "pre-commit", "pytest"]
[tool.setuptools]
packages = ["samexporter", "samexporter.mobile_encoder", "samexporter.sam2_configs"]
[tool.setuptools.package-data]
"samexporter.sam2_configs" = ["*.yaml", "sam2.1/*.yaml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [".git", "__pycache__", "build", "dist", "*.egg-info", "sam3"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP"]
ignore = [
"E501", # line too long
"E741", # ambiguous variable name
"UP006", "UP007",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401", "F811"]