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

about the code #43

Open
xuejiancai opened this issue Aug 26, 2021 · 1 comment
Open

about the code #43

xuejiancai opened this issue Aug 26, 2021 · 1 comment

Comments

@xuejiancai
Copy link

xuejiancai commented Aug 26, 2021

Hello yinbo,
I have a question about the meaning of data_norm in train configuration file.I guess inp,gt mean input,ground-truth respectively.But what is the meaning of sub:[0.5] and div:[0.5]?
data_norm:
inp: {sub: [0.5], div: [0.5]}
gt: {sub: [0.5], div: [0.5]}
Could you help me?Thank you!

@Surayuth
Copy link

Surayuth commented Nov 3, 2021

Those values are used to normalize the inputs, which are ground truths(gt) and low-resolution images(inp), of the model(feature extracter)​. As you can see, inp: {sub:[0.5], div: [0.5]} means the low-resolution images (which are actually tensors in this case) will be normalized as inp = (inp - sub)/div.

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