Download lib/train/admin/local.py from AhmedLabib1/stark-full: direct link, hf CLI and curl.
- Browser
- Download file 928 Bytes
-
https://huggingface.co/AhmedLabib1/stark-full/resolve/main/lib/train/admin/local.py
- Command line
-
hf download hf://AhmedLabib1/stark-full/lib/train/admin/local.py
-
curl -L -o local.py https://huggingface.co/AhmedLabib1/stark-full/resolve/main/lib/train/admin/local.py
928 Bytes
| """Minimal local.py for STARK checkpoint loading - MTC-AIC4 Competition""" | |
| from pathlib import Path | |
| class EnvironmentSettings: | |
| def __init__(self): | |
| self.workspace_dir = Path(__file__).resolve().parents[4] # Points to Stark/ | |
| self.env_settings_dir = Path(__file__).resolve().parent | |
| self.results_dir = self.workspace_dir / "results" | |
| self.save_dir = self.workspace_dir / "output" | |
| self.tensorboard_dir = self.save_dir / "tensorboard" | |
| # Dummy dataset paths | |
| self.lasot_dir = self.workspace_dir / "data/dummy" | |
| self.got10k_dir = self.workspace_dir / "data/dummy" | |
| self.trackingnet_dir = self.workspace_dir / "data/dummy" | |
| self.coco_dir = self.workspace_dir / "data/dummy" | |
| def prj_dir(self): | |
| return self.workspace_dir | |
| def local_env_settings(): | |
| return EnvironmentSettings() | |
| def create_default_local_file(): | |
| pass |