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

如何制作自己的训练集

tongchangD opened this issue · comments

from utils import utils_blindsr as blindsr
img_lq, img_hq = blindsr.degradation_bsrgan(img, sf=4, lq_patchsize=72)

但是报错,这这这咋办
h1, w1 = img.shape[:2]
AttributeError: 'str' object has no attribute 'shape'

8023_______
8023______1

使用这个方法生成的LR图和HR 是错的

@tongchangD Probably your image range is in [0-255], while degradation function requires it to be in [0-1].

@tongchangD Probably your image range is in [0-255], while degradation function requires it to be in [0-1].

Okay, thank you. I already knew why last year