diff --git a/keras_retinanet/utils/image.py b/keras_retinanet/utils/image.py index 44edfea93..2e109df52 100644 --- a/keras_retinanet/utils/image.py +++ b/keras_retinanet/utils/image.py @@ -28,6 +28,7 @@ def read_image_bgr(path): Args path: Path to the image. """ + # We deliberately don't use cv2.imread here, since it gives no feedback on errors while reading the image. image = np.asarray(Image.open(path).convert('RGB')) return image[:, :, ::-1].copy()