JiahuiYu / wdsr_ntire2018

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

'Namespace' object has no attribute 'r_mean' #10

Closed BigChen28 closed 5 years ago

BigChen28 commented 5 years ago

Hi, thank you very much for sharing your code. I ran your model(WDSR_b ) based on EDSR-Pytorch as backbone training framework, but it reported an error as follows:

AttributeError: 'Namespace' object has no attribute 'r_mean'

The relevant code is located in wdsr-b.py: self.rgb_mean = torch.autograd.Variable(torch.FloatTensor( [args.r_mean, args.g_mean, args.b_mean])).view([1, 3, 1, 1])

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

JiahuiYu commented 5 years ago

Please find the result in issue #7

BigChen28 commented 5 years ago

I am sorry that I did not see your reply and thank you very much for your answer.

JiahuiYu commented 5 years ago

@BigChen28 No problem, let me know if you have further questions.