Skip to content

Commit

Permalink
Fix multi-class heatmap plotting overview
Browse files Browse the repository at this point in the history
  • Loading branch information
Avic3nna authored Mar 26, 2024
1 parent 2f0a143 commit 37f021f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stamp/heatmaps/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def main(
learn.model(feats.unsqueeze(-2), torch.ones((len(feats)))), dim=1
)
scores_2d = vals_to_im(scores, coords // stride).detach()
fig, axs = plt.subplots(nrows=2, ncols=min(2, len(categories)), figsize=(12, 8))
fig, axs = plt.subplots(nrows=2, ncols=max(2, len(categories)), figsize=(12, 8))

show_class_map(
class_ax=axs[0, 1],
Expand Down

0 comments on commit 37f021f

Please sign in to comment.