Unverified 提交 21a9607e authored 作者: tudoulei's avatar tudoulei 提交者: GitHub

`cv2.imread(img, -1)` for IMREAD_UNCHANGED (#3379)

* Update datasets.py * comment Co-authored-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com>
上级 57f773b0
......@@ -181,7 +181,7 @@ class LoadImages: # for inference
else:
# Read image
self.count += 1
img0 = cv2.imread(path) # BGR
img0 = cv2.imread(path, -1) # BGR (-1 is IMREAD_UNCHANGED)
assert img0 is not None, 'Image Not Found ' + path
print(f'image {self.count}/{self.nf} {path}: ', end='')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论