Download lib/train/_init_paths.py from AhmedLabib1/stark-full: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/AhmedLabib1/stark-full/resolve/main/lib/train/_init_paths.py
- Command line
-
hf download hf://AhmedLabib1/stark-full/lib/train/_init_paths.py
-
curl -L -o _init_paths.py https://huggingface.co/AhmedLabib1/stark-full/resolve/main/lib/train/_init_paths.py
321 Bytes
| from __future__ import absolute_import | |
| from __future__ import division | |
| from __future__ import print_function | |
| import os.path as osp | |
| import sys | |
| def add_path(path): | |
| if path not in sys.path: | |
| sys.path.insert(0, path) | |
| this_dir = osp.dirname(__file__) | |
| prj_path = osp.join(this_dir, '../..') | |
| add_path(prj_path) | |