MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / forward

Method forward

networks/rrdbnet2_arch.py:71–80  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

69 self.lrelu = nn.LeakyReLU(negative_slope=0.2, inplace=True)
70
71 def forward(self, x):
72 fea = self.conv_first(x)
73 trunk = self.trunk_conv(self.RRDB_trunk(fea))
74 fea = fea + trunk
75 fea = self.lrelu(self.upconv1(F.interpolate(fea, scale_factor=2, mode='nearest')))
76 if self.sf==4:
77 fea = self.lrelu(self.upconv2(F.interpolate(fea, scale_factor=2, mode='nearest')))
78 out = self.conv_last(self.lrelu(self.HRconv(fea)))
79
80 return out

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected