summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/app/search/search_dense.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py
index d559e5b..7e0f517 100644
--- a/cli/app/search/search_dense.py
+++ b/cli/app/search/search_dense.py
@@ -593,9 +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()
+
+ with slim.arg_scope(nets.vgg.vgg_arg_scope()):
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')