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

Class SimpleImageConcat

ldm/modules/diffusionmodules/upscaling.py:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56class SimpleImageConcat(AbstractLowScaleModel):
57 # no noise level conditioning
58 def __init__(self):
59 super(SimpleImageConcat, self).__init__(noise_schedule_config=None)
60 self.max_noise_level = 0
61
62 def forward(self, x):
63 # fix to constant noise level
64 return x, torch.zeros(x.shape[0], device=x.device).long()
65
66
67class ImageConcatWithNoiseAugmentation(AbstractLowScaleModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected