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

Method forward

ldm/modules/diffusionmodules/model.py:687–697  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

685 padding=1)
686
687 def forward(self, x):
688 for i, layer in enumerate(self.model):
689 if i in [1,2,3]:
690 x = layer(x, None)
691 else:
692 x = layer(x)
693
694 h = self.norm_out(x)
695 h = nonlinearity(h)
696 x = self.conv_out(h)
697 return x
698
699
700class UpsampleDecoder(nn.Module):

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.85

Tested by

no test coverage detected