liif icon indicating copy to clipboard operation
liif copied to clipboard

about the code

Open xuejiancai opened this issue 4 years ago • 1 comments

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!

xuejiancai avatar Aug 26 '21 02:08 xuejiancai

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.

Surayuth avatar Nov 03 '21 19:11 Surayuth