Skip to content

Commit

Permalink
Edit comment (ultralytics#3759)
Browse files Browse the repository at this point in the history
edit comment
  • Loading branch information
developer0hye committed Jun 24, 2021
1 parent f054da3 commit f7f7f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def __getitem__(self, index):
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
Expand Down

0 comments on commit f7f7f4e

Please sign in to comment.