Browse Source

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

This reverts commit 21a9607e00.
modifyDataloader
Glenn Jocher GitHub 3 years ago
parent
commit
fdbe527dc0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/datasets.py

+ 1
- 1
utils/datasets.py 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='')


Loading…
Cancel
Save