From e27df4c3c8f003dd1c3e0f2e68adbfcfd2366213 Mon Sep 17 00:00:00 2001 From: Hans Gaiser Date: Fri, 26 Jul 2019 11:17:44 +0200 Subject: [PATCH] Update image.py --- keras_retinanet/utils/image.py | 1 + 1 file changed, 1 insertion(+) 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()