from utils.geo_layer_utils import bilinear_interp
from utils.geo_layer_utils import meshgrid
+FLAGS = tf.app.flags.FLAGS
+
class Voxel_flow_model(object):
def __init__(self, is_train=True):
self.is_train = is_train
mask = tf.expand_dims(net[:, :, :, 2], 3)
grid_x, grid_y = meshgrid(256, 256)
- grid_x = tf.tile(grid_x, [32, 1, 1]) # batch_size = 32
- grid_y = tf.tile(grid_y, [32, 1, 1]) # batch_size = 32
+ grid_x = tf.tile(grid_x, [FLAGS.batch_size, 1, 1])
+ grid_y = tf.tile(grid_y, [FLAGS.batch_size, 1, 1])
flow = 0.5 * flow