TPS_STN-tensorflow icon indicating copy to clipboard operation
TPS_STN-tensorflow copied to clipboard

TensorFlow implementation of Thin Plate Spline Spatial Transformer Network

TPS_STN-tensorflow

TensorFlow implementation of Thin Plate Spline Spatial Transformer Network

# test.py
v = np.array([
  [0.2, 0.2],
  [0.4, 0.4],
  [0.6, 0.6],
  [0.8, 0.8]])

p = tf.constant(v.reshape([1, nx*ny, 2]), dtype=tf.float32)
t_img = tf.constant(img.reshape(shape), dtype=tf.float32)
t_img = TPS_STN(t_img, nx, ny, p, out_size)

alt tag alt tag

References