(self, x)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected