-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (124 loc) · 3.75 KB
/
pyproject.toml
File metadata and controls
135 lines (124 loc) · 3.75 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
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
133
134
135
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mini-mesh"
version = "0.3.1"
description = "Video to 3D mesh reconstruction pipeline"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11,<3.13"
authors = [{ name = "Matthias Humt", email = "github.gizzard320@passmail.net" }]
keywords = [
"3d-reconstruction",
"3d-modeling",
"colmap",
"computer-vision",
"gaussian-splatting",
"mesh-generation",
"neural-rendering",
"nerf",
"neus",
"photogrammetry",
"structure-from-motion",
"surface-reconstruction",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics :: 3D Modeling",
"Topic :: Multimedia :: Graphics :: 3D Rendering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = ["gradio>=4.0.0"]
[project.optional-dependencies]
# Core pipeline deps (sdfstudio for NeuS/VolSDF methods)
core = [
"numpy<2",
"scikit-build-core>=0.11",
"pybind11>=2.6",
"sdfstudio[cuda,cuda-build,export] @ git+https://github.com/hummat/sdfstudio.git@v0.8.0",
]
# Background removal
rembg = ["rembg[gpu,cli]"]
# NeRF/Gaussian splatting methods
nerf = [
"nerfstudio @ git+https://github.com/hummat/nerfstudio.git@55a1f83025bb28cbf792760c9b79f9eb22c3a2e4",
]
# SAM2 segmentation
sam = [
"sam2 @ git+https://github.com/hummat/sam2.git@98f488a540f87260b8e51146dc3ab15694dd174c",
]
# VGGSfM for visual-geometry-grounded SfM
vggsfm = [
"vggsfm @ git+https://github.com/hummat/vggsfm.git@d597df629a312a662544006ac3bdbc2782b82834",
]
# hloc-cli requires manual hloc install first:
# git clone --recursive https://github.com/cvg/Hierarchical-Localization.git
# pip install -e Hierarchical-Localization
# pip install git+https://github.com/hummat/hloc-cli.git@1b714e1183bbc3cb6f4031ddedcc4bd5190ece29
# All optional deps for local install (excludes tinycudann, hloc which require manual steps)
local = [
"mini-mesh[core,rembg,nerf,sam,vggsfm]",
]
[project.urls]
Homepage = "https://hummat.com"
Repository = "https://github.com/hummat/mini-mesh"
Documentation = "https://hummat.github.io/mini-mesh"
Issues = "https://github.com/hummat/mini-mesh/issues"
[dependency-groups]
dev = [
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.14.0",
"ruff>=0.14.0",
"pyright>=1.1.0",
]
[tool.uv]
# Limit resolution to x86_64 Linux (CUDA-only project)
environments = ["sys_platform == 'linux' and platform_machine == 'x86_64'"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--cov=webui",
"--cov-report=term-missing",
"--cov-report=html",
]
markers = ["unit: Unit tests", "integration: Integration tests"]
[tool.coverage.run]
source = ["."]
omit = ["tests/*", "*/test_*", ".venv/*", "venv/*"]
[tool.coverage.report]
fail_under = 80
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["webui.py"]
[tool.pyright]
include = ["webui.py", "tests"]
exclude = ["**/__pycache__", ".venv", "venv"]
pythonVersion = "3.11"
typeCheckingMode = "basic"
reportMissingImports = true
reportMissingTypeStubs = false
venvPath = "."
venv = ".venv"