Spaces:
Paused
Paused
Download wheels/dust3r/datasets_preprocess/path_to_root.py from notenoughram/ReconViaGen: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/notenoughram/ReconViaGen/resolve/main/wheels/dust3r/datasets_preprocess/path_to_root.py
- Command line
-
hf download hf://spaces/notenoughram/ReconViaGen/wheels/dust3r/datasets_preprocess/path_to_root.py
-
curl -L -o path_to_root.py https://huggingface.co/spaces/notenoughram/ReconViaGen/resolve/main/wheels/dust3r/datasets_preprocess/path_to_root.py
491 Bytes
| # Copyright (C) 2024-present Naver Corporation. All rights reserved. | |
| # Licensed under CC BY-NC-SA 4.0 (non-commercial use only). | |
| # | |
| # -------------------------------------------------------- | |
| # DUSt3R repo root import | |
| # -------------------------------------------------------- | |
| import sys | |
| import os.path as path | |
| HERE_PATH = path.normpath(path.dirname(__file__)) | |
| DUST3R_REPO_PATH = path.normpath(path.join(HERE_PATH, '../')) | |
| # workaround for sibling import | |
| sys.path.insert(0, DUST3R_REPO_PATH) | |