Download CARPK/tool/_init_paths.py from ObjEarth/ObjEarth-Data: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/ObjEarth/ObjEarth-Data/resolve/main/CARPK/tool/_init_paths.py
- Command line
-
hf download hf://datasets/ObjEarth/ObjEarth-Data/CARPK/tool/_init_paths.py
-
curl -L -o _init_paths.py https://huggingface.co/datasets/ObjEarth/ObjEarth-Data/resolve/main/CARPK/tool/_init_paths.py
419 Bytes
| """Set up paths.""" | |
| 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__) | |
| # Add caffe to PYTHONPATH (add it if you haven't set the PYTHONPATH in .bashrc) | |
| #caffe_path = osp.join(this_dir, './', 'caffe', 'python') | |
| #add_path(caffe_path) | |
| # Add lib to PYTHONPATH | |
| lib_path = osp.join(this_dir, './', 'lib') | |
| add_path(lib_path) | |