GaborNet icon indicating copy to clipboard operation
GaborNet copied to clipboard

Questions about calculate_weights()

Open copyrightly opened this issue 4 years ago • 2 comments

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 avatar Jan 20 '21 07:01 copyrightly

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 avatar Jan 20 '21 07:01 copyrightly

@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)

happyday521 avatar May 07 '21 07:05 happyday521