kaiyuyue / cgnl-network.pytorch

Compact Generalized Non-local Network (NIPS 2018)
https://arxiv.org/abs/1810.13125
MIT License
259 stars 41 forks source link

Approximation about Eq. (10) #2

Closed ggjy closed 5 years ago

ggjy commented 5 years ago

Thanks for presenting a such interesting work. I wonder if you use β = exp(−γ(∥θ∥^2 +∥φ∥^2)) to approximate β = exp(−γ(∥θi∥^2 +∥φj∥^2)) in Eq. (10)?

Yuzz1020 commented 5 years ago

Have you solved this question? I have the same doubt as you do.

According to the source code, it seems the author just used the normal matrix multiplication instead of the Taylor expansion mentioned in the paper.

kaiyuyue commented 5 years ago

According to the source code, it seems the author just used the normal matrix multiplication instead of the Taylor expansion mentioned in the paper.

Hi @noNameForMe1994 , I didn't use the simple matrix multiplication to replace the Talyor expansion part. Please check out these lines of code.

Yuzz1020 commented 5 years ago

According to the source code, it seems the author just used the normal matrix multiplication instead of the Taylor expansion mentioned in the paper.

Hi @noNameForMe1994 , I didn't use the simple matrix multiplication to replace the Talyor expansion part. Please check out these lines of code.

Thank you so much! I got it now.

kaiyuyue commented 5 years ago

Anyone could have time and resources to research on this topic, please let us know and open this issue again.