arm-model / model /test_path_fix.py
pragadeeshv23's picture
Upload folder using huggingface_hub
5b86813 verified
#!/usr/bin/env python3
from pathlib import Path
# Check path fix
config_OUTPUT_DIR = Path("road-anomaly-detection")
timestamp = "20260124_164145"
run_name = f"train_{timestamp}"
# New way (fixed)
run_dir_new = Path("runs/detect") / config_OUTPUT_DIR / run_name
best_model_new = run_dir_new / "weights" / "best.pt"
print("NEW PATH (fixed):", best_model_new)
print("NEW PATH exists:", best_model_new.exists())
# Check actual path
actual_path = Path("runs/detect/road-anomaly-detection/train_20260124_164145/weights/best.pt")
print("Actual path exists:", actual_path.exists())