We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782450a commit 95071c5Copy full SHA for 95071c5
1 file changed
afy/cam_fomm.py
@@ -74,6 +74,10 @@ def load_images(IMG_SIZE = 256):
74
for i, f in enumerate(images_list):
75
if f.endswith('.jpg') or f.endswith('.jpeg') or f.endswith('.png'):
76
img = cv2.imread(f)
77
+ if img is None:
78
+ log("Failed to open image: {}".format(f))
79
+ continue
80
+
81
if img.ndim == 2:
82
img = np.tile(img[..., None], [1, 1, 3])
83
img = img[..., :3][..., ::-1]
0 commit comments