MCPcopy
hub / github.com/triple-mu/YOLOv8-TensorRT / C2f

Class C2f

models/common.py:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72class 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
84class PostDetect(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected