MCPcopy Create free account
hub / github.com/IceClear/StableSR / forward

Method forward

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

Source from the content-addressed store, hash-verified

858 padding=1)
859
860 def forward(self, x):
861 for i, layer in enumerate(self.model):
862 if i in [1,2,3]:
863 x = layer(x, None)
864 else:
865 x = layer(x)
866
867 h = self.norm_out(x)
868 h = nonlinearity(h)
869 x = self.conv_out(h)
870 return x
871
872
873class UpsampleDecoder(nn.Module):

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.85

Tested by

no test coverage detected