Closed jinxiqinghuan closed 1 year ago
you can put every image in a frame with the same dimensions, or anyway in the smallest frame allowing a comfortable step (e.g. you choose 128 as the desired step, you have an image of 300x300, q=300//128, dim=(q+1)*128 if 300%128==0 else 300)
Thank you very much for your suggestion. @antalele
Hello, I have a problem when i useing patchify.
In my task, i want divide different size of images to (256, 256), and then input them to a (Deep learning generation) model. Last, I want unpatchify them. This is my code:
But, i found most of the images need a very small step, which causes the algorithm to run very slowly. There will be a lot of extra image parts that need to be synthesized. I think there may be a problem with the algorithm I chose step, but according to the requirements in your document, I can't think of other algorithm implementation methods.