Download lib/test/evaluation/local.py from AhmedLabib1/stark-full: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/AhmedLabib1/stark-full/resolve/main/lib/test/evaluation/local.py
- Command line
-
hf download hf://AhmedLabib1/stark-full/lib/test/evaluation/local.py
-
curl -L -o local.py https://huggingface.co/AhmedLabib1/stark-full/resolve/main/lib/test/evaluation/local.py
1.34 kB
| # Stark/lib/test/evaluation/local.py | |
| import os | |
| class EnvironmentSettings: | |
| def __init__(self): | |
| # Resolve to the Stark/ root directory (4 levels up from this file) | |
| self.workspace_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../..')) | |
| self.env_settings_dir = os.path.dirname(__file__) | |
| # Output & logging directories | |
| self.results_dir = os.path.join(self.workspace_dir, 'results') | |
| self.save_dir = os.path.join(self.workspace_dir, 'output') | |
| self.tensorboard_dir = os.path.join(self.save_dir, 'tensorboard') | |
| # Dataset paths (dummy paths are fine since we only need inference) | |
| self.lasot_dir = os.path.join(self.workspace_dir, 'data/LaSOT') | |
| self.got10k_dir = os.path.join(self.workspace_dir, 'data/got10k') | |
| self.trackingnet_dir = os.path.join(self.workspace_dir, 'data/trackingnet') | |
| self.coco_dir = os.path.join(self.workspace_dir, 'data/coco') | |
| self.lasot_lmdb_dir = os.path.join(self.workspace_dir, 'data/LaSOT/lmdb') | |
| self.got10k_lmdb_dir = os.path.join(self.workspace_dir, 'data/got10k/lmdb') | |
| # 🔑 CRITICAL: STARK's config.py explicitly calls env_settings().prj_dir | |
| self.prj_dir = self.workspace_dir | |
| def local_env_settings(): | |
| return EnvironmentSettings() |