cszn / BSRGAN

Designing a Practical Degradation Model for Deep Blind Image Super-Resolution (ICCV, 2021) (PyTorch) - We released the training code!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible bug in degradation_bsrgan

DanilKonon opened this issue · comments

It is possible that dimensions are permutated in the cropping operation in degradation_bsrgan_plus, degradation_bsrgan functions in 541, 450 lines.

It should be
img = img.copy()[:h1 - h1 % sf, :w1 - w1 % sf, ...] # mod crop
instead of
img = img.copy()[:w1 - w1 % sf, :h1 - h1 % sf, ...] # mod crop

I have the same question.

I think this is bug. I also change the code to use degradation model

Thanks. Fixed.