Skip to content

Commit 8d85329

Browse files
Leon Dongfacebook-github-bot
authored andcommitted
Import Detector Eval Dataloader
Summary: Imports eval dataloaders to vizard - Modified dataloader to accept one big dataset - Modified loaded data to include "mode" field indicated word or line eval Reviewed By: srihari2761 Differential Revision: D64222758 fbshipit-source-id: 785cecff7df038d20adb93d48adb4625f47b609c
1 parent 28fd05e commit 8d85329

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

detectron2/data/detection_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def read_image(file_name, format=None):
183183
# work around this bug: https://github.com/python-pillow/Pillow/issues/3973
184184
image = _apply_exif_orientation(image)
185185
return convert_PIL_to_numpy(image, format)
186+
raise ValueError(f"Failed to read image at: {file_name}")
186187

187188

188189
def check_image_size(dataset_dict, image):

0 commit comments

Comments
 (0)