Skip to content

Commit

Permalink
predict mitosis
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Nov 26, 2023
1 parent e7f5beb commit de4b068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/napatrackmater/Trackvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ def predict_with_model(saved_model_path, saved_model_json, features_array):
num_classes_class1=num_classes_class1,
num_classes_class2=num_classes_class2,
)
model.load_state_dict(torch.load(saved_model_path), map_location=torch.device(device))
model.load_state_dict(torch.load(saved_model_path, map_location=torch.device(device)))
model.to(device)
model.eval()

Expand Down

0 comments on commit de4b068

Please sign in to comment.