Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何制作自己的训练集 #22

Closed
tongchangD opened this issue Sep 26, 2021 · 3 comments
Closed

如何制作自己的训练集 #22

tongchangD opened this issue Sep 26, 2021 · 3 comments

Comments

@tongchangD
Copy link

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
Copy link
Author

8023_______
8023______1

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

@Magauiya
Copy link

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

@tongchangD
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants