We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75d3d27 commit f857f8fCopy full SHA for f857f8f
angel_system/object_detection/yolov11_detect.py
@@ -337,6 +337,8 @@ def yolo_v11_inference_objects(
337
):
338
img_path: Path = dset.get_image_fpath(img_id)
339
img0 = cv2.imread(img_path.as_posix())
340
+ if img0 is None:
341
+ raise RuntimeError(f"Failed to read image file: {img_path}")
342
343
# returns list of length=num images, which is always 1 here.
344
object_preds = object_model.predict(source=img0, **object_predict_kwargs)[0]
0 commit comments