MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/extensions/ESRGAN/__init__.py:18–24  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

16 self.lrelu = torch.nn.LeakyReLU(negative_slope=0.2, inplace=True)
17
18 def forward(self, x):
19 x1 = self.lrelu(self.conv1(x))
20 x2 = self.lrelu(self.conv2(torch.cat((x, x1), 1)))
21 x3 = self.lrelu(self.conv3(torch.cat((x, x1, x2), 1)))
22 x4 = self.lrelu(self.conv4(torch.cat((x, x1, x2, x3), 1)))
23 x5 = self.conv5(torch.cat((x, x1, x2, x3, x4), 1))
24 return x5 * 0.2 + x
25
26
27class RRDB(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected