BrianPulfer/PapersReimplementations

patchify for loop ranges

bairesearch opened this issue · 1 comments

Note there is an issue in patchify(), introduced by commit "Added patchify method which keeps positional information." (7cffc6c);

for i in range(h // n_patches):
    for j in range(w // n_patches):

It can be changed to;

for i in range(n_patches):
    for j in range(n_patches):

Dear @baxterai,

Thank you very much for your contribution. Yes, your change looks good to me. You can send a pull request.