SpatialTransformerLayer icon indicating copy to clipboard operation
SpatialTransformerLayer copied to clipboard

Play with the theta parameters?

Open FengLoveBella opened this issue 7 years ago • 1 comments

Rotation-only spatial transformer networks. I want to learn a theta parameters which only rotation support. I know rotation mean [cos(theta), -sin(theta),sin(theta),cos(theta)], but how to constrain the these parameters to let the stn only support rotation.

FengLoveBella avatar Jun 21 '17 15:06 FengLoveBella

You have to write your own layer to use the input theta to generate output 2x2 matrix. It is not hard to do. Or, you can just predict the four values and put some additional loss to constraint the matrix to be a rotation matrix.

daerduoCarey avatar Jun 21 '17 18:06 daerduoCarey