python - TF: mask random rectangle in image. -
i want mask image 10x10 rectangle position randomly in image. eg. set values of [batch, height, width, col_channels] zero.
in numpy [:, random_x:random_x+10, random_y:random_y+10, :] = 0.
is there possibility doing in tensor-flow in elegant way?
Comments
Post a Comment