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

Method forward

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

Source from the content-addressed store, hash-verified

723 padding=1)
724
725 def forward(self, x):
726 # upsampling
727 h = x
728 for k, i_level in enumerate(range(self.num_resolutions)):
729 for i_block in range(self.num_res_blocks + 1):
730 h = self.res_blocks[i_level][i_block](h, None)
731 if i_level != self.num_resolutions - 1:
732 h = self.upsample_blocks[k](h)
733 h = self.norm_out(h)
734 h = nonlinearity(h)
735 h = self.conv_out(h)
736 return h
737
738
739class LatentRescaler(nn.Module):

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.85

Tested by

no test coverage detected