Closed DanilKonon closed 2 years ago
It is possible that dimensions are permutated in the cropping operation in degradation_bsrgan_plus, degradation_bsrgan functions in 541, 450 lines.
degradation_bsrgan_plus
degradation_bsrgan
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
img = img.copy()[:h1 - h1 % sf, :w1 - w1 % sf, ...] # mod crop
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.
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 ofimg = img.copy()[:w1 - w1 % sf, :h1 - h1 % sf, ...] # mod crop