Tensorflow
Transforms
- class ToTensorflow(always_apply=True, p=1.0)[source]
Bases:
BasicTransformConvert image and mask to Tensorflow.Tensor. The numpy HWDC image is converted to Tensorflow HWDC tensor. If the image is in HWD format (grayscale image), it will be converted to Tensorflow HWDC tensor.
- Parameters:
always_apply (bool) – Indicates whether this transformation should be always applied. Default: True.
p (float) – Probability of applying the transform. Default: 1.0.
- property targets: Dict[str, Callable]