I want to extract patches from multiple images of a batch

Consider my input data.shape = [batch_size, 10_images, img_size, img_size, 1]

I want to extract patches of patch_size of each 10 images in a particular batch.

After that combine patches of all these 10 images as a whole in sequential order.

So that my output is like, output.shape = [batch_size, 10_images * patch_size * patch_size * 1]

Please help.

submitted by /u/ashwani_iitp
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *