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

Method forward

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

Source from the content-addressed store, hash-verified

138 self.norm_s = ADAIN(input_nc, feature_nc)
139
140 def forward(self, x, z):
141 x_s = self.shortcut(x, z)
142 dx = self.conv_0(self.actvn(self.norm_0(x, z)))
143 dx = self.conv_1(self.actvn(self.norm_1(dx, z)))
144 out = x_s + dx
145 return out
146
147 def shortcut(self, x, z):
148 x_s = self.conv_s(self.actvn(self.norm_s(x, z)))

Callers

nothing calls this directly

Calls 1

shortcutMethod · 0.95

Tested by

no test coverage detected