对Deformable中的 offset 求梯度不是很理解
Deformable Offset
x ⇒ conv(x) ⇒ x_coords ⇒ ( lt, lb, rt, rb )
⇒ px*py*lt + px*(1-py)lb + (1-px)*py*rt + (1-px)(1-py)*rb
⇒ x
对px的偏导数,求其gradient
这个地方 偏导数可能为0, 为1
所以得:
然后依次求得各项偏导,并依次向下求偏导数
对Deformable中的 offset 求梯度不是很理解
Deformable Offset
x ⇒ conv(x) ⇒ x_coords ⇒ ( lt, lb, rt, rb )
⇒ px*py*lt + px*(1-py)lb + (1-px)*py*rt + (1-px)(1-py)*rb
⇒ x
对px的偏导数,求其gradient