Revert "cv2.imread(img, -1) for IMREAD_UNCHANGED" (#1778)

This commit is contained in:
Glenn Jocher 2021-05-31 10:40:13 +02:00 committed by GitHub
parent 044eb9142b
commit ab7ff9dd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ class LoadImages: # for inference
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='')