[ICML'26] PointDiT: Pixel-Space Diffusion for Monocular Geometry Estimation
Python
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Paths that resolve against the repository, not the current directory.
Constants the code hardcodes -- ``pretrained/dinov3``, ``generation`` -- go
through :func:`repo_path` instead of being used as bare relative strings, so a
command launched from somewhere other than the repository root still finds the
``pretrained`` and ``datasets`` symlinks that live next to this package.
"""
import os
# The repository root: this file is <repo>/util/paths.py, so go up two levels.
REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def repo_path(*parts):
"""Join `parts` onto the repository root and return an absolute path."""
return os.path.join(REPO_ROOT, *parts)