patchify.py icon indicating copy to clipboard operation
patchify.py copied to clipboard

Different step size between axis

Open gabrielMonaco opened this issue 1 year ago • 1 comments

To cover my entire image dataset along the X-axis, I need to use a step size smaller than my image patch, while along the Y-axis, it fits perfectly with a step equal to the size of my patch.

Is it possible to use different step sizes for each axis?

gabrielMonaco avatar Jul 26 '23 22:07 gabrielMonaco

patchify(image, (w, h, 3), step=(step1, step2, 1))

Ruhrozz avatar May 17 '24 11:05 Ruhrozz