MCPcopy Create free account
hub / github.com/OpenTalker/StyleHEAT / forward

Method forward

models/styleheat/base_function.py:240–250  ·  view source on GitHub ↗
(self, x, z)

Source from the content-addressed store, hash-verified

238 self.output_nc = out_channels
239
240 def forward(self, x, z):
241 out = x.pop()
242 for i in range(self.layers)[::-1]:
243 res_model = getattr(self, 'res' + str(i))
244 up_model = getattr(self, 'up' + str(i))
245 jump_model = getattr(self, 'jump' + str(i))
246 out = res_model(out, z)
247 out = up_model(out)
248 out = jump_model(x.pop()) + out
249 out_image = self.final(out)
250 return out_image
251
252
253class FineDecoderV2(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected