MediaBrain-SJTU / RegAD

[ECCV2022 Oral] Registration based Few-Shot Anomaly Detection
MIT License
277 stars 40 forks source link

How to understand the different formulas of STN in the two papers? #12

Closed qiny1012 closed 2 years ago

qiny1012 commented 2 years ago

In the paper “Spatial Transformer Networks”,the transformation formula of feature coordinates is as follows. image $(x^t,y^t)$ in the back, $(x^s,y^s)$ in the front. In the paper “Registration based Few-Shot Anomaly Detection”,the transformation formula of feature coordinates is as follows. image $(x^t,y^t)$ in the front, $(x^s,y^s)$ in the back.

Haoyan-Guan commented 2 years ago

Thanks for pointing out this mistake. In code implementation, the STN is the same as the paper 'Spatial Transformer Networks'. In paper, the subscripts of the letters(s and t) are reversed.