Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (52 loc) · 1.77 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (52 loc) · 1.77 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
[project]
name = "colmapforge"
dynamic = ["version"]
description = "COLMAP video/image preprocessing tool with SAM-based dynamic object masking"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "Vincent Qin" }]
dependencies = [
"opencv-python-headless>=4.8",
"numpy>=1.24",
"onnx>=1.14",
"pyyaml>=6.0",
"PyQt6>=6.6",
"darkdetect>=0.8",
"tqdm>=4.66",
# ONNX Runtime is NOT a hard dependency — install via extras:
# uv sync --extra cpu (all platforms, CoreML on macOS)
# uv sync --extra gpu (Linux / Windows, NVIDIA CUDA)
#
# Or install manually after `uv sync`:
# uv pip install onnxruntime # CPU
# uv pip install onnxruntime-gpu # GPU (--no-deps to avoid overwrite)
]
[project.optional-dependencies]
# CPU ONNX Runtime (all platforms). On macOS includes CoreML for Apple Silicon.
cpu = ["onnxruntime>=1.28.0"]
# CUDA acceleration — Linux & Windows only (NVIDIA GPU + CUDA runtime).
# The [cuda,cudnn] extras pull nvidia-* wheels that exist ONLY for Linux;
# Windows needs a system-wide CUDA 13 Toolkit + cuDNN 9 install instead.
gpu = [
"onnxruntime-gpu[cuda,cudnn]>=1.28.0; sys_platform == 'linux'",
"onnxruntime-gpu>=1.28.0; sys_platform == 'win32'",
]
[project.scripts]
colmapforge = "colmapforge.app:main"
cmf = "colmapforge.app:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "colmapforge/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["colmapforge"]
[tool.hatch.build.targets.wheel.force-include]
"colmapforge/configs/models.yaml" = "colmapforge/configs/models.yaml"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["E501"]