Update OpenCV image read error message (#13822)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/13837/head
xiaoluohao 5 months ago committed by GitHub
parent 9f62c0f707
commit 0ca3cd3fbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/data/loaders.py

@ -362,7 +362,7 @@ class LoadImagesAndVideos:
self.mode = "image"
im0 = cv2.imread(path) # BGR
if im0 is None:
raise FileNotFoundError(f"Image Not Found {path}")
raise FileNotFoundError(f"Image Read Error {path}")
paths.append(path)
imgs.append(im0)
info.append(f"image {self.count + 1}/{self.nf} {path}: ")

Loading…
Cancel
Save