denoising-diffusion-pytorch icon indicating copy to clipboard operation
denoising-diffusion-pytorch copied to clipboard

Is there any way to save loss of training step?

Open Derick317 opened this issue 1 year ago • 1 comments

I wonder there is any way to save loss of training step? Since I install the repository from pip, changing the souce code seems dirty.

Derick317 avatar Apr 10 '23 09:04 Derick317

in class Trainer, def train() you can for example import wandb, init and after

pbar.set_description(f'loss: {total_loss:.4f}')

Log the total_loss to wandb

wandb.log({"total_loss": total_loss}, step=self.step)

kirilzilla avatar Jul 06 '23 16:07 kirilzilla