Revert "cv2.imread(img, -1) for IMREAD_UNCHANGED" (#1778)
This commit is contained in:
parent
044eb9142b
commit
ab7ff9dd4c
@ -181,7 +181,7 @@ class LoadImages: # for inference
|
|||||||
else:
|
else:
|
||||||
# Read image
|
# Read image
|
||||||
self.count += 1
|
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
|
assert img0 is not None, 'Image Not Found ' + path
|
||||||
print(f'image {self.count}/{self.nf} {path}: ', end='')
|
print(f'image {self.count}/{self.nf} {path}: ', end='')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user