osc.data.clevr_with_masks.prepare_test_segmentation

prepare_test_segmentation(example, img_size: Tuple[int, int], crop_size: Tuple[int, int], mean: Tuple[float, float, float], std: Tuple[float, float, float])[source]

Prepare a test example for segmentation (center crop+normalization)

Parameters
Returns

A dict containing the image [3 H W], the mask [C H W] and a bool vector of object visibility [C]