Interesting behaviour/interaction between matplotlib and validation_epoch_end(self, outputs) #13282
-
I am modifying some code taken out of the lightning docs and training a VAE to learn a represenation of time series thought to contain structure. The validation outputs are reconstructions of the time series. The following code is written with the intention of grabbing a random output and plotting it. Two things happen that I don't understand. 1 - It seems the plt object from the previous epoch is still in memory and the new data is plotted alongside the old. I have tried deleting the data explicitly but to no avail...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Creating a new figure before plotting? fig, ax = plt.subplots()
ax.set_xlim(0, 10)
ax.plot([1, 5], [0, 10]) |
Beta Was this translation helpful? Give feedback.
Creating a new figure before plotting?