Download tddfa/Sim3DR/_init_paths.py from ozyman/fasd: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/spaces/ozyman/fasd/resolve/main/tddfa/Sim3DR/_init_paths.py
- Command line
-
hf download hf://spaces/ozyman/fasd/tddfa/Sim3DR/_init_paths.py
-
curl -L -o _init_paths.py https://huggingface.co/spaces/ozyman/fasd/resolve/main/tddfa/Sim3DR/_init_paths.py
223 Bytes
| # coding: utf-8 | |
| 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, '.') | |
| add_path(lib_path) | |