Datasets:
Download source/code/project_paths.py from Ethosoft/RefSeg-CA: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/datasets/Ethosoft/RefSeg-CA/resolve/main/source/code/project_paths.py
- Command line
-
hf download hf://datasets/Ethosoft/RefSeg-CA/source/code/project_paths.py
-
curl -L -o project_paths.py https://huggingface.co/datasets/Ethosoft/RefSeg-CA/resolve/main/source/code/project_paths.py
471 Bytes
| """Resolve bundled legacy dependencies without hard-coded cluster paths.""" | |
| from pathlib import Path | |
| import os | |
| def legacy_root(root): | |
| if os.getenv('REFSEG_LEGACY_ROOT'):return Path(os.environ['REFSEG_LEGACY_ROOT']).resolve() | |
| root=Path(root) | |
| for p in [root/'legacy_project',root.parent/'refseg_scale_20260906',root.parent/'RefSeg_Scale_MVA']: | |
| if p.exists():return p | |
| raise FileNotFoundError('Bundled legacy_project missing; set REFSEG_LEGACY_ROOT') | |