diff options
Diffstat (limited to 'cli/app/search/search_dense.py')
| -rw-r--r-- | cli/app/search/search_dense.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py index 1eee22c..d559e5b 100644 --- a/cli/app/search/search_dense.py +++ b/cli/app/search/search_dense.py @@ -593,7 +593,9 @@ def feature_loss_vgg(feature_extractor, opt_feature_layers, BATCH_SIZE, img_a, i # gen_fc, gen_feat_ex = nets.vgg.vgg_16(img_a, scope=scope_a) #, reuse=True) # target_fc, target_feat_ex = nets.vgg.vgg_16(img_b, scope=scope_b) #, reuse=True) with slim.arg_scope(nets.vgg.vgg_arg_scope()): + tf.reset_default_graph() gen_fc, gen_feat_ex = nets.vgg.vgg_16(img_a) #, reuse=True) + tf.reset_default_graph() target_fc, target_feat_ex = nets.vgg.vgg_16(img_b) #, reuse=True) # gen_feat_ex = feature_extractor(dict(images=img_a), as_dict=True, signature='image_feature_vector') |
