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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -