Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed problem with homografy transformation
  • Loading branch information
SkafteNicki committed Aug 21, 2018
1 parent a52c5fe commit 55e8ec2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddtn/transformers/transformer_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def ST_Homografy_transformer(U, theta, out_size):
# Reshape theta
theta = tf.reshape(theta, (-1, 3, 3))

# Make it a valid homografy
theta = theta / tf.norm(theta, axis=[1,2], keep_dims=True)

# Create grid of points
out_height = out_size[0]
out_width = out_size[1]
Expand Down

0 comments on commit 55e8ec2

Please sign in to comment.