Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
bug fix to model predictions (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
yalaudah authored Jun 5, 2020
1 parent 55bad56 commit 4986bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiments/interpretation/dutchf3_patch/local/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _patch_label_2d(
# save image:
image_to_disk(np.array(batch[i, 0, :, :]), path_prefix + "_img.png")
# dump model prediction:
mask_to_disk(model_output[i, :, :, :].argmax(dim=1).numpy(), path_prefix + "_pred.png", num_classes)
mask_to_disk(model_output[i, :, :, :].argmax(dim=0).numpy(), path_prefix + "_pred.png", num_classes)
# dump model confidence values
for nclass in range(num_classes):
image_to_disk(
Expand Down

0 comments on commit 4986bec

Please sign in to comment.