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

Method forward

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

Source from the content-addressed store, hash-verified

274 self.output_nc = out_channels
275
276 def forward(self, x, z):
277 out = x.pop()
278 for i in range(self.layers)[::-1]:
279 res_model = getattr(self, 'res' + str(i))
280 up_model = getattr(self, 'up' + str(i))
281 jump_model = getattr(self, 'jump' + str(i))
282 out = res_model(out, z)
283 out = up_model(out)
284 out = jump_model(x.pop()) + out
285 out_image1 = self.final1(out)
286 out_image2 = self.final2(out)
287 return [out_image1, out_image2]
288
289
290class FirstBlock2d(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected