Skip to content

Commit

Permalink
Import Detector Eval Dataloader
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Leon Dong authored and facebook-github-bot committed Oct 14, 2024
1 parent 28fd05e commit 8d85329
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 8d85329

Please sign in to comment.