Skip to content

Commit

Permalink
fix: return prediction proba
Browse files Browse the repository at this point in the history
  • Loading branch information
Alikerin committed Feb 8, 2025
1 parent 2f9f76e commit d67cc73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions instageo/model/infer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ def chip_inference(
prediction_batch = model(data)
prediction_cls = (
torch.nn.functional.softmax(prediction_batch, dim=1)
.argmax(dim=1)
.cpu()
.numpy()
.numpy()[:, 1, :, :]
)

profiles = []
Expand Down

0 comments on commit d67cc73

Please sign in to comment.