(self, d_blocks, u_blocks, skip_stages=0)
| 434 | |
| 435 | class UNet(ConditionedModule): |
| 436 | def __init__(self, d_blocks, u_blocks, skip_stages=0): |
| 437 | super().__init__() |
| 438 | self.d_blocks = nn.ModuleList(d_blocks) |
| 439 | self.u_blocks = nn.ModuleList(u_blocks) |
| 440 | self.skip_stages = skip_stages |
| 441 | |
| 442 | def forward(self, input, cond): |
| 443 | skips = [] |