Skip to content
Snippets Groups Projects
Commit ebe8a3a0 authored by Stavros Mitsis's avatar Stavros Mitsis
Browse files

Commit test

parent 43894a65
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ def main():
# Load the final trained model (entire model, not just state_dict)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_path = os.path.join(base_dir, "best_model.pth")
model = torch.load(model_path)
model = torch.load(model_path, map_location=device)
# Also load the threshold from the best hyperparameters
hyperparams_path = os.path.join(base_dir, "best_hyperparameters.json")
with open(hyperparams_path, "r") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment