Views
No views yet
stage1_best_model.pth - Stage 1 checkpoint (20 epochs)stage2_best_model.pth - Final model (80 epochs total)1import torch
2from pathlib import Path
3
4# Load model
5model = torch.load('stage2_best_model.pth')
6model.eval()
7
8# Inference
9with torch.no_grad():
10 output = model(image_tensor) # Returns: (x_norm, y_norm, distance_norm)