diff --git a/utils/datasets.py b/utils/datasets.py index abb4a36..d3714d7 100755 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -574,7 +574,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing labels_out[:, 1:] = torch.from_numpy(labels) # Convert - img = img[:, :, ::-1].transpose(2, 0, 1) # BGR to RGB, to 3x416x416 + img = img[:, :, ::-1].transpose(2, 0, 1) # BGR to RGB, to 3 x img_height x img_width img = np.ascontiguousarray(img) return torch.from_numpy(img), labels_out, self.img_files[index], shapes