Closed Xuanmeng-Zhang closed 3 years ago
Hi @Xuanmeng-Zhang,
this process ensures offsets are initialized to a conventional 8-neighbor setup (i.e., 3x3 neighbors) because depending on the index, (hh - (self.k_f - 1) / 2, ww - (self.k_f - 1) / 2) falls into (-1, -1) to (1, 1).
I think you can remove these two lines and it makes the network learn all the neighbors' offset from zero without any initial values.
Hope this explanation is helpful for your understanding!
Thank you for your answer. I get it!
Hi, Park, I feel confused about the two-line code in nlspnmode.py as follows.
Can you explain the function of the two lines?What happens if I remove the two lines?