(self)
| 52 | |
| 53 | class IFNet_m(nn.Module): |
| 54 | def __init__(self): |
| 55 | super(IFNet_m, self).__init__() |
| 56 | self.block0 = IFBlock(6+1, c=240) |
| 57 | self.block1 = IFBlock(13+4+1, c=150) |
| 58 | self.block2 = IFBlock(13+4+1, c=90) |
| 59 | self.block_tea = IFBlock(16+4+1, c=90) |
| 60 | self.contextnet = Contextnet() |
| 61 | self.unet = Unet() |
| 62 | |
| 63 | def forward(self, x, scale=[4,2,1], timestep=0.5, returnflow=False): |
| 64 | timestep = (x[:, :1].clone() * 0 + 1) * timestep |
nothing calls this directly
no test coverage detected