tf_unet Package¶
unet
Module¶
image_util
Module¶
util
Module¶
Created on Aug 10, 2016
author: jakeret
-
tf_unet.util.
combine_img_prediction
(data, gt, pred)[source]¶ Combines the data, grouth thruth and the prediction into one rgb image
Parameters: - data – the data tensor
- gt – the ground thruth tensor
- pred – the prediction tensor
Returns img: the concatenated rgb image
-
tf_unet.util.
crop_to_shape
(data, shape)[source]¶ Crops the array to the given image shape by removing the border (expects a tensor of shape [batches, nx, ny, channels].
Parameters: - data – the array to crop
- shape – the target shape