]> git.sesse.net Git - voxel-flow/commitdiff
Fix loading from checkpoints again.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 9 Feb 2018 20:05:17 +0000 (20:05 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 9 Feb 2018 20:05:17 +0000 (20:05 +0000)
voxel_flow_train.py

index 42f91af8b22e6ba0b7fb96888c35c03d0fa62dd6..7d39968fa5d418d0a357862ebce1ce55d1b7c47b 100755 (executable)
@@ -115,6 +115,7 @@ def train(dataset_frame1, dataset_frame2, dataset_frame3):
       restorer.restore(sess, ckpt.model_checkpoint_path)
       print('%s: Pre-trained model restored from %s' %
         (datetime.now(), ckpt.model_checkpoint_path))
+      sess.run([batch_frame1.initializer, batch_frame2.initializer, batch_frame3.initializer])
     else:
       # Build an initialization operation to run below.
       init = tf.initialize_all_variables()