| #!/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()) | |