File size: 620 Bytes
af9853e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import glob
from config import Config

print(f"Current Working Directory: {os.getcwd()}")
print(f"Config.RESULTS_DIR: {Config.RESULTS_DIR}")

# Debug Finding Checkpoints
candidates = glob.glob(os.path.join(Config.RESULTS_DIR, "checkpoint-*"))
print(f"Found {len(candidates)} candidates:")
for c in candidates:
    print(f" - {c}")

if not candidates:
    # Try relative path manual
    print("Trying relative path './results/checkpoint-*'...")
    candidates = glob.glob("./results/checkpoint-*")
    print(f"Found {len(candidates)} candidates via relative:")
    for c in candidates:
        print(f" - {c}")