Skip to content

Commit 76ea9c8

Browse files
committed
Log loss for debugging
1 parent 1a0c13c commit 76ea9c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ def __call__(
10281028

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

10331034
# 11. Post-process the latents.

0 commit comments

Comments
 (0)