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

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

Closed
BigChen28 opened this issue Oct 24, 2018 · 3 comments
Closed

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

BigChen28 opened this issue Oct 24, 2018 · 3 comments

Comments

@BigChen28
Copy link

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

Please find the result in issue #7

@BigChen28
Copy link
Author

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

@JiahuiYu
Copy link
Owner

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

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