Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 20, 2024
2 parents 319ec57 + 8d85329 commit 61874a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions detectron2/data/detection_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def read_image(file_name, format=None):
# work around this bug: https://github.com/python-pillow/Pillow/issues/3973
image = _apply_exif_orientation(image)
return convert_PIL_to_numpy(image, format)
raise ValueError(f"Failed to read image at: {file_name}")


def check_image_size(dataset_dict, image):
Expand Down

0 comments on commit 61874a4

Please sign in to comment.