Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 719 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 719 Bytes

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