Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored May 25, 2024
1 parent ce237e8 commit 5cd303a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fl_common/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def generate_xai_heatmaps(model, image_tensor, label, save_dir, methods=None):
plt.imshow(attributions_np, cmap="viridis")
plt.title(f"XAI Heatmap for {method_name} (Label: {label})")
plt.colorbar()
save_path = save_dir, +"/" + f"xai_heatmap_{method_name}_{label}.png"
save_path = save_dir, + '/' + f"xai_heatmap_{method_name}_{label}.png"
plt.savefig(save_path)
plt.show()

Expand Down

0 comments on commit 5cd303a

Please sign in to comment.