Logging Images during validation using Tensorboard Logger #12035
-
Hi, I have successfully implemented the method to log images to tensorboard logger, except I run out of GPU memory soon as I accumulate images during the whole validation_step and by end of the validation round, I randomly select few images to log. This is not the best way to do it. Can someone point me how to do it properly where I don’t consume too much of Memory. Thanks. This is how my validation step looks:
One can clearly see that I am accumulating tensors over the validation step. Since I am working with very large dataset, I run out of memory very soon. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
hey @muaali !
you can log the images randomly inside |
Beta Was this translation helpful? Give feedback.
hey @muaali !
you can log the images randomly inside
validation_step
itself to avoid accumulation that is creating memory overhead.