princeton-vl/CornerNet-Lite

suggested error handling

blafasel42 opened this issue · 0 comments

hi, after there a some issues related to images not loading, i suggest to add some error handling after:

image = cv2.imread(image_path)

I would add after image = cv2.imread(image_path):

        if image is None:
            raise Exception('Image could not be read', image_path)