MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / log_images

Method log_images

ldm/models/diffusion/ddpm.py:1685–1689  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1683
1684 @torch.no_grad()
1685 def log_images(self, *args, **kwargs):
1686 log = super(LatentInpaintDiffusion, self).log_images(*args, **kwargs)
1687 log["masked_image"] = rearrange(args[0]["masked_image"],
1688 'b h w c -> b c h w').to(memory_format=torch.contiguous_format).float()
1689 return log
1690
1691
1692class LatentDepth2ImageDiffusion(LatentFinetuneDiffusion):

Callers

nothing calls this directly

Calls 1

log_imagesMethod · 0.45

Tested by

no test coverage detected