Download tools/_init_paths.py from galaxygummybear/hrnet_pytorch: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/galaxygummybear/hrnet_pytorch/resolve/main/tools/_init_paths.py
- Command line
-
hf download hf://galaxygummybear/hrnet_pytorch/tools/_init_paths.py
-
curl -L -o _init_paths.py https://huggingface.co/galaxygummybear/hrnet_pytorch/resolve/main/tools/_init_paths.py
595 Bytes
| # ------------------------------------------------------------------------------ | |
| # Copyright (c) Microsoft | |
| # Licensed under the MIT License. | |
| # Written by Bin Xiao (Bin.Xiao@microsoft.com) | |
| # ------------------------------------------------------------------------------ | |
| 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__) | |
| lib_path = osp.join(this_dir, '..', 'lib') | |
| add_path(lib_path) | |