File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ def main(options):
517
517
sess .run (init_op )
518
518
if options .restore == 0 :
519
519
#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 ]
521
521
pretrained_model_loader = tf .train .Saver (var_to_restore )
522
522
pretrained_model_loader .restore (sess , options .modelPathDeepLab )
523
523
elif options .restore == 1 :
You can’t perform that action at this time.
0 commit comments