JiahuiYu / wdsr_ntire2018

Code of our winning entry to NTIRE super-resolution challenge, CVPR 2018
http://www.vision.ee.ethz.ch/ntire18/
598 stars 123 forks source link

How to set the r_mean, g_mean, b_mean attribute values of args? #9

Closed BigChen28 closed 5 years ago

BigChen28 commented 5 years ago

Hello,thank you very much for sharing your code. I ran your model(WDSR_B) based on EDSR-Pytorch as backbone training framework, but when I ran here:

self.rgb_mean = torch.autograd.Variable(torch.FloatTensor( [args.r_mean, args.g_mean, args.b_mean])).view([1, 3, 1, 1])

I found the following errors: AttributeError: 'Namespace' object has no attribute 'r_mean'

and I can't find the values of r_mean,g_mean,b_mean in the option.py, could you tell me how to set the values of r_mean,g_mean,b_mean?

JiahuiYu commented 5 years ago

7 Please find the result in issue #7