Unverified 提交 417a2f42 authored 作者: Yonghye Kwon's avatar Yonghye Kwon 提交者: GitHub

Edit comment (#3759)

edit comment
上级 ae4261c7
...@@ -574,7 +574,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing ...@@ -574,7 +574,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
labels_out[:, 1:] = torch.from_numpy(labels) labels_out[:, 1:] = torch.from_numpy(labels)
# Convert # 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) img = np.ascontiguousarray(img)
return torch.from_numpy(img), labels_out, self.img_files[index], shapes return torch.from_numpy(img), labels_out, self.img_files[index], shapes
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论