(self, **kwargs)
| 59 | |
| 60 | class IFNet(nn.Module): |
| 61 | def __init__(self, **kwargs): |
| 62 | super(IFNet, self).__init__() |
| 63 | self.block0 = IFBlock(7+4, c=90) |
| 64 | self.block1 = IFBlock(7+4, c=90) |
| 65 | self.block2 = IFBlock(7+4, c=90) |
| 66 | self.block_tea = IFBlock(10+4, c=90) |
| 67 | |
| 68 | def forward(self, x, scale_list=[4, 2, 1], training=False): |
| 69 | if training == False: |