Does this code support unpatchify patches when step>1 during patchify ?
SahadevPoudel opened this issue · 5 comments
SahadevPoudel commented
Does this code support unpatchify patches when step>1 during patchify ?
dovahcrow commented
Hi @SahadevPoudel can you provide the code with step > 1 that doesn't work?
SahadevPoudel commented
dovahcrow commented
I think the error message already clarified that it only supports uniform step size.
It is not possible to create patches with 256 as the width and 2 as the step size for 7221 pixels.
Try (904,256,3) as the patch size and step size 5 instead.
SahadevPoudel commented
Will you elaborate how do you set patch size and step size for any random image. For example, Image size is (5289, 7221, 3) and required patch size is 224,224,3?
dovahcrow commented
@SahadevPoudel I just added one paragraph at https://github.com/dovahcrow/patchify.py#merge-patches-into-original-image.
