GaborNet
GaborNet copied to clipboard
Questions about calculate_weights()
Hi Andrey, I have a couple of questions about calculate_weights().
- in line 106-109, why do you need expand_as(self.y)?
- 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!
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.
@copyrightly Hi, have you solved the above problems? I have the same confusion as you about:
- dividing g by (2 * math.pi * sigma ** 2), and
- self.register_parameter("weight", self.weight)