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

Questions about calculate_weights() #27

Open
copyrightly opened this issue Jan 20, 2021 · 2 comments
Open

Questions about calculate_weights() #27

copyrightly opened this issue Jan 20, 2021 · 2 comments

Comments

@copyrightly
Copy link

Hi Andrey, I have a couple of questions about calculate_weights().

  1. in line 106-109, why do you need expand_as(self.y)?
  2. in line 118, why do you need to divide g by (2 * math.pi * sigma ** 2)? I cannot find this in the original expression of Gabor filters.
    Thank you!
@copyrightly
Copy link
Author

One more question, in line 91, why do you self.register_parameter("weight", self.weight)? It seems that self.weight is an empty tensor which isn't needed in the computation.

@happyday521
Copy link

@copyrightly Hi, have you solved the above problems? I have the same confusion as you about:

  1. dividing g by (2 * math.pi * sigma ** 2), and
  2. self.register_parameter("weight", self.weight)

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