File size: 1,338 Bytes
d301b87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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()