Update head.py

mct-2.1.1
Laughing-q 8 months ago
parent 159971ae59
commit 96e911c370
  1. 1
      ultralytics/nn/modules/head.py

@ -121,6 +121,7 @@ class Detect(nn.Module):
x2 = self.relu(dbox[:, 3, :])
y_bb = torch.stack((x1, y1, x2, y2), 1).transpose(1, 2)
# return torch.cat((dbox, cls.sigmoid()), 1)
return y_bb, cls.sigmoid().permute(0, 2, 1)
def bias_init(self):

Loading…
Cancel
Save