Skip to content

Commit

Permalink
fixed plt figures
Browse files Browse the repository at this point in the history
  • Loading branch information
LostOxygen committed Jul 10, 2023
1 parent 857261c commit ca1ccfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visualize_lrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def main() -> None:
axes[2].set_xticks([])
axes[2].set_yticks([])

fig.savefig(f"./plots/{model_file}_lrp.png")
plt.savefig(f"./plots/{model_file}_lrp.png")
plt.close()

# create and save the LRP analysis for the specral channels
Expand All @@ -217,7 +217,7 @@ def main() -> None:
axes[3].plot(attribution_spectral_depth)
axes[3].set_title("Spectral Attribution Depthwise")

fig.savefig(f"./plots/{model_file}_spectral_lrp.png")
plt.savefig(f"./plots/{model_file}_spectral_lrp.png")
plt.close()

print("[ finished LRP analysis ]")
Expand Down

0 comments on commit ca1ccfb

Please sign in to comment.