https://zhuanlan.zhihu.com/p/41738716

https://github.com/oarriaga/STN.keras/blob/master/src/models/STN.py