Skip to content

Commit

Permalink
Fix stage 1 loss missing
Browse files Browse the repository at this point in the history
  • Loading branch information
alex04072000 authored Dec 24, 2018
1 parent f4f5cb4 commit 4302a5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CyclicGen_train_stage1.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def train(dataset_frame1, dataset_frame2, dataset_frame3):
with tf.variable_scope("Cycle_DVF"):
model1 = Voxel_flow_model()
prediction1, flow1 = model1.inference(tf.concat([input1, input3, edge_1, edge_3], 3))
reproduction_loss1 = model1.l1loss(prediction1, input2)

t_vars = tf.trainable_variables()
print('all layers:')
Expand All @@ -112,7 +113,7 @@ def train(dataset_frame1, dataset_frame2, dataset_frame3):
print('optimize layers:')
for var in dof_vars: print(var.name)

total_loss = prediction1
total_loss = reproduction_loss1

# Perform learning rate scheduling.
learning_rate = FLAGS.initial_learning_rate
Expand Down

0 comments on commit 4302a5f

Please sign in to comment.