Skip to content

Commit

Permalink
Log loss for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
clarencechen committed Mar 12, 2023
1 parent 1a0c13c commit 76ea9c8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ def __call__(

# call the callback, if provided
if i == len(timesteps) - 1 or ((i + 1) > num_warmup_steps and (i + 1) % self.scheduler.order == 0):
progress_bar.set_postfix({"loss": loss.loss.detach().item()})
progress_bar.update()

# 11. Post-process the latents.
Expand Down

0 comments on commit 76ea9c8

Please sign in to comment.