MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / forward

Method forward

models/sr3_dwt.py:389–396  ·  view source on GitHub ↗
(self, x, cond)

Source from the content-addressed store, hash-verified

387 nn.init.zeros_(self.body[-1].bias)
388
389 def forward(self, x, cond):
390 cond = self.body(cond)
391 scale, shift = cond.chunk(2, dim=1)
392
393 x = self.x_conv(x)
394
395 x = x * (1 + scale) + shift
396 return x
397
398
399class FreqCondInjection(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected