Revert "`cv2.imread(img, -1)` for IMREAD_UNCHANGED (#3379)" (#3395)
Browse filesThis reverts commit 21a9607e00f1365b21d8c4bd81bdbf5fc0efea24.
- utils/datasets.py +1 -1
utils/datasets.py
CHANGED
@@ -181,7 +181,7 @@ class LoadImages: # for inference
|
|
181 |
else:
|
182 |
# Read image
|
183 |
self.count += 1
|
184 |
-
img0 = cv2.imread(path
|
185 |
assert img0 is not None, 'Image Not Found ' + path
|
186 |
print(f'image {self.count}/{self.nf} {path}: ', end='')
|
187 |
|
|
|
181 |
else:
|
182 |
# Read image
|
183 |
self.count += 1
|
184 |
+
img0 = cv2.imread(path) # BGR
|
185 |
assert img0 is not None, 'Image Not Found ' + path
|
186 |
print(f'image {self.count}/{self.nf} {path}: ', end='')
|
187 |
|