MCPcopy Create free account
hub / github.com/DPS2022/diffusion-posterior-sampling / __init__

Method __init__

guided_diffusion/unet.py:744–745  ·  view source on GitHub ↗
(self, image_size, in_channels, *args, **kwargs)

Source from the content-addressed store, hash-verified

742 """
743
744 def __init__(self, image_size, in_channels, *args, **kwargs):
745 super().__init__(image_size, in_channels * 2, *args, **kwargs)
746
747 def forward(self, x, timesteps, low_res=None, **kwargs):
748 _, _, new_height, new_width = x.shape

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected