Skip to content
Snippets Groups Projects
Commit 5cac507c authored by Alain Riou's avatar Alain Riou
Browse files

png issue

parent 93fbf862
No related tags found
No related merge requests found
# Changelog
## v0.1.1
- solve issue when exporting in PNG
## v0.1.0 - 2023-10-17
Initial version
\ No newline at end of file
...@@ -41,7 +41,7 @@ def export_png(output_file: str, timesteps, confidence, activations, lims=(21, 1 ...@@ -41,7 +41,7 @@ def export_png(output_file: str, timesteps, confidence, activations, lims=(21, 1
bps = activations.shape[1] // 128 bps = activations.shape[1] // 128
activations = activations[:, bps*lims[0]: bps*lims[1]] activations = activations[:, bps*lims[0]: bps*lims[1]]
activations = activations * confidence.unsqueeze(1) activations = activations * confidence[:, None]
plt.imshow(activations.T, plt.imshow(activations.T,
aspect='auto', origin='lower', cmap='inferno', aspect='auto', origin='lower', cmap='inferno',
extent=(timesteps[0], timesteps[-1]) + lims) extent=(timesteps[0], timesteps[-1]) + lims)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment