From 52dc2323ecc07af96dbc73343e2c92778684476c Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Tue, 15 Oct 2019 20:16:58 -0700 Subject: [PATCH] Fix detectron_utils.read_image docs Summary: Pull Request resolved: https://github.com/facebookresearch/detectron2/pull/85 Differential Revision: D17947350 Pulled By: ppwwyyxx fbshipit-source-id: 692b170dc33cc22958207e8551a6f9fe5526e467 --- detectron2/data/detection_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detectron2/data/detection_utils.py b/detectron2/data/detection_utils.py index 6316c08624..2c047fb78c 100644 --- a/detectron2/data/detection_utils.py +++ b/detectron2/data/detection_utils.py @@ -37,7 +37,7 @@ def read_image(file_name, format=None): Args: dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. - format (dict): one of the supported image modes in PIL, or "BGR" + format (str): one of the supported image modes in PIL, or "BGR" Returns: image (np.ndarray): an HWC image