# Prepare model.
model = Voxel_flow_model()
- prediction = model.inference(input_placeholder)
+ prediction, flow = model.inference(input_placeholder)
# reproduction_loss, prior_loss = model.loss(prediction, target_placeholder)
reproduction_loss = model.loss(prediction, target_placeholder)
# total_loss = reproduction_loss + prior_loss
summaries.append(tf.summary.image('Input Image (after)', input_placeholder[:, :, :, 3:6], 3));
summaries.append(tf.summary.image('Output Image', prediction, 3))
summaries.append(tf.summary.image('Target Image', target_placeholder, 3))
+ summaries.append(tf.summary.image('Flow', flow, 3))
# Create a saver.
saver = tf.train.Saver(tf.all_variables())
# target_resized = tf.image.resize_area(target_placeholder,[128, 128])
# Prepare model.
- model = Voxel_flow_model(is_train=True)
+ model, flow = Voxel_flow_model(is_train=True)
prediction = model.inference(input_placeholder)
# reproduction_loss, prior_loss = model.loss(prediction, target_placeholder)
reproduction_loss = model.loss(prediction, target_placeholder)