如何制作自己的训练集
tongchangD opened this issue · comments
tongchangD commented
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'
tongchangD commented
Magicst6 commented
@tongchangD Probably your image range is in [0-255], while degradation function requires it to be in [0-1].
tongchangD commented
@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