MCPcopy Create free account
hub / github.com/ShihaoZhaoZSH/Uni-ControlNet / forward

Method forward

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

Source from the content-addressed store, hash-verified

676 padding=1)
677
678 def forward(self, x):
679 for i, layer in enumerate(self.model):
680 if i in [1,2,3]:
681 x = layer(x, None)
682 else:
683 x = layer(x)
684
685 h = self.norm_out(x)
686 h = nonlinearity(h)
687 x = self.conv_out(h)
688 return x
689
690
691class UpsampleDecoder(nn.Module):

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.85

Tested by

no test coverage detected