Skip to content

Commit

Permalink
Revert "cv2.imread(img, -1) for IMREAD_UNCHANGED (#3379)" (#3395)
Browse files Browse the repository at this point in the history
This reverts commit 21a9607.
  • Loading branch information
glenn-jocher committed May 31, 2021
1 parent d833ab3 commit fdbe527
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 @@ -181,7 +181,7 @@ def __next__(self):
else:
# Read image
self.count += 1
img0 = cv2.imread(path, -1) # BGR (-1 is IMREAD_UNCHANGED)
img0 = cv2.imread(path) # BGR
assert img0 is not None, 'Image Not Found ' + path
print(f'image {self.count}/{self.nf} {path}: ', end='')

Expand Down

0 comments on commit fdbe527

Please sign in to comment.