| 70 | |
| 71 | |
| 72 | class C2f(nn.Module): |
| 73 | def __init__(self, *args, **kwargs): |
| 74 | super().__init__() |
| 75 | |
| 76 | def forward(self, x): |
| 77 | x = self.cv1(x) |
| 78 | x = [x, x[:, self.c :, ...]] |
| 79 | x.extend(m(x[-1]) for m in self.m) |
| 80 | x.pop(1) |
| 81 | return self.cv2(torch.cat(x, 1)) |
| 82 | |
| 83 | |
| 84 | class PostDetect(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected