Download pyproject.toml from changh95/DepthPro2: direct link, hf CLI and curl.
- Browser
- Download file 3.15 kB
-
https://huggingface.co/changh95/DepthPro2/resolve/main/pyproject.toml
- Command line
-
hf download hf://changh95/DepthPro2/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/changh95/DepthPro2/resolve/main/pyproject.toml
3.15 kB
| # SPDX-License-Identifier: Apache-2.0 | |
| # Python package of DepthPro2 (changh95/DepthPro2), from the ROOT of the model repo: | |
| # pip install -e . # the Python API | |
| # pip install -e ".[server,test]" # + the HTTP server and the tests | |
| # | |
| # Install it into an environment that already has tt-metal's ttnn (and its torch 2.11.0+cpu): ttnn and torch are NOT | |
| # declared, so pip never replaces the tt-metal build's own torch. The container image installs the same set through | |
| # tt-model.yaml runtime.packages (pinned there to the versions the gates ran with). | |
| # | |
| # This file lives at the repo root ON PURPOSE and must never move into code/: tt-model copies code/ over /opt/tt-metal | |
| # right before `uv pip install -e /opt/tt-metal` in the image build, so a code/pyproject.toml would replace tt-metal's | |
| # own (project ttnn) and break `import ttnn` in the image. It is not in tt-model.yaml extra_code: it reaches the Hub as | |
| # an overlay file next to the generated README.md. | |
| [build-system] | |
| requires = ["setuptools>=77"] | |
| build-backend = "setuptools.build_meta" | |
| [project] | |
| name = "tt-depthpro2" | |
| dynamic = ["version"] # tt_depthpro2.__version__, the version /openapi.json reports | |
| description = "Apple Depth Pro 2 (S, B, L, H+) metric depth on Tenstorrent Blackhole p150 (tt-nn), with a Python API and an HTTP server" | |
| readme = "code/PYTHON.md" | |
| license = "Apache-2.0" # the port's code; the weights (not included) are under Apple's research-only licence | |
| requires-python = ">=3.10" | |
| dependencies = [ | |
| "numpy>=1.24.4,<2", # ttnn needs numpy 1.x | |
| "pillow", # image decoding, 16-bit PNG output | |
| "safetensors", # apple/DepthPro2-* model.safetensors | |
| "huggingface_hub", # weights pointers: apple/DepthPro2-{S,B,L,H,focal} at pinned commits | |
| ] | |
| [project.optional-dependencies] | |
| server = ["fastapi", "uvicorn", "pydantic>=2"] | |
| test = ["pytest", "httpx"] | |
| [project.urls] | |
| "Model card" = "https://huggingface.co/changh95/DepthPro2" | |
| "Weights" = "https://huggingface.co/apple/DepthPro2" | |
| "Official code" = "https://github.com/apple-aiml-research/ml-depth-pro-2" | |
| [tool.setuptools.dynamic] | |
| version = { attr = "tt_depthpro2.__version__" } | |
| [tool.setuptools.packages.find] | |
| where = ["code"] # import root (code/conftest.py and code/scripts/ are not packaged) | |
| include = ["tt_depthpro2*"] # with the vendored tt_depthpro2.ttaw (common/tools/vendor.py; never edit it) | |
| exclude = ["tt_depthpro2.tests*"] | |
| [tool.setuptools.package-data] | |
| "tt_depthpro2" = ["samples/*/*", "licenses/*"] | |
| "tt_depthpro2.tt" = ["kernels/*"] # device kernels, JIT-compiled at the first start | |
| "tt_depthpro2.tt.mk_enc" = ["kernels/*.cpp", "kernels/*.hpp", "kernels/*.h"] | |
| "tt_depthpro2.tt.mk_dec" = ["kernels/*.cpp", "kernels/*.hpp", "kernels/*.h"] | |
| "tt_depthpro2.tt.mk_fov" = ["kernels/*.cpp", "kernels/*.hpp", "kernels/*.h"] | |
| "tt_depthpro2.ttaw" = ["API.md", "VENDORED.json"] | |
| "tt_depthpro2.ttaw.ops" = ["kernels/*.cpp", "kernels/*.hpp", "kernels/*.h"] | |
| [tool.pytest.ini_options] | |
| markers = ["device: needs a Tenstorrent chip (skipped on host-only runs)"] | |