diff --git a/models.py b/models.py index d6a50eeb..181950f9 100755 --- a/models.py +++ b/models.py @@ -146,7 +146,7 @@ class YOLOLayer(nn.Module): def forward(self, p, targets=None, var=None): FT = torch.cuda.FloatTensor if p.is_cuda else torch.FloatTensor - bs = 1 if ONNX_EXPORT else p.shape[0] # batch size + bs = p.shape[0] # batch size nG = self.nG # number of grid points if p.is_cuda and not self.weights.is_cuda: