-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image logging to tensorboard #54
Comments
yup! in the lightningModule you can call self.experiment. that’s a summarywriter for tensorboard. for the api of that refer to pytorch summarywriter. https://pytorch.org/docs/stable/tensorboard it’s all explained here: https://williamfalcon.github.io/pytorch-lightning/Trainer/Logging/#tensorboard-support realized self.experiment from docs. adding now! |
@tmquan can you update to the latest test-tube version and try again? |
They should be the same grey as the other links, not blue, and should turn orange when active like the other links.
Is there an approach to only log a subset of images instead of all over the |
@williamFalcon I don't think it's a feasible solution. It means returning the outputs of the forward pass from However, as soon as you override |
@ceceu have you tried
and then log images? |
@epignatelli you can create a variable such as
and then plot these. This will work with DDP and the regular single GPU case but will not work with DP the default version does not support state maintenance. |
Thanks @ananyahjha93 and @williamFalcon, I guess the callback approach is the best practice. |
Hi, right now is there any method to call tensorboard's |
@qmpzzpmq tensorboard = self.logger.experiment
grid = torchvision.utils.make_grid(...)
tensorboard.add_image(f'{stage}_samples', grid.clamp(0., 1.), self.current_epoch*self.batch_size + batch_idx) |
Hi @williamFalcon ,
Thanks for your nice work.
I am just wondering is it possible to log the image tensor to tensorboard to train such a U-net?
Bests,
The text was updated successfully, but these errors were encountered: