Spaces:
Runtime error
Runtime error
Download project_path.py from caltech-fish-counting/fisheye-experimental: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/caltech-fish-counting/fisheye-experimental/resolve/main/project_path.py
- Command line
-
hf download hf://spaces/caltech-fish-counting/fisheye-experimental/project_path.py
-
curl -L -o project_path.py https://huggingface.co/spaces/caltech-fish-counting/fisheye-experimental/resolve/main/project_path.py
341 Bytes
| """ | |
| A kind of hacky way to get all the lib paths in order. | |
| """ | |
| import sys | |
| import os | |
| current_dir = os.path.dirname(os.path.realpath(__file__)) | |
| for d in [current_dir, os.path.join(current_dir, "lib/fish_eye/"), os.path.join(current_dir, "lib/"), os.path.join(current_dir, "lib/yolov5/")]: | |
| if d not in sys.path: | |
| sys.path.append(d) |