Skip to content

Commit 88eb76d

Browse files
authoredJan 30, 2019
Update train_planenet.py
1 parent 00b1ed4 commit 88eb76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎train_planenet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def main(options):
517517
sess.run(init_op)
518518
if options.restore == 0:
519519
#fine-tune from DeepLab model
520-
var_to_restore = [v for v in var_to_restore if 'res5d' not in v.name and 'segmentation' not in v.name and 'plane' not in v.name and 'deep_supervision' not in v.name and 'local' not in v.name and 'boundary' not in v.name and 'degridding' not in v.name and 'res2a_branch2a' not in v.name and 'res2a_branch1' not in v.name and 'Adam' not in v.name and 'beta' not in v.name and 'statistics' not in v.name and 'semantics' not in v.name]
520+
var_to_restore = [v for v in var_to_restore if 'res5d' not in v.name and 'segmentation' not in v.name and 'plane' not in v.name and 'deep_supervision' not in v.name and 'local' not in v.name and 'boundary' not in v.name and 'degridding' not in v.name and 'res2a_branch2a' not in v.name and 'res2a_branch1' not in v.name and 'Adam' not in v.name and 'beta' not in v.name and 'statistics' not in v.name and 'semantics' not in v.name and 'crfrnn' not in v.name]
521521
pretrained_model_loader = tf.train.Saver(var_to_restore)
522522
pretrained_model_loader.restore(sess, options.modelPathDeepLab)
523523
elif options.restore == 1:

0 commit comments

Comments
 (0)
Please sign in to comment.