cerebras.modelzoo.data.vision.segmentation.preprocessing_utils.tile_image_transform#

cerebras.modelzoo.data.vision.segmentation.preprocessing_utils.tile_image_transform(img, target_height, target_width)[source]#

Function to tile image to tgt_height and target_width If target_height < image_height: image is not tiled in this dimension. If target_width < image_width: image is not tiled in this dimension. :params img: input torch.Tensor of shape (C, H, W) :params target_height: int value representing output tiled image height :params target_width: int value representing output tiled image width :returns torch.Tensor of shape (C, target_height, target_width)