summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-02-16 11:31:58 +0100
committerJules Laplace <julescarbon@gmail.com>2020-02-16 11:31:58 +0100
commitc6344682b8bac3708d99c01f1595c0334a5dfa30 (patch)
tree7bdf2236fc09f8868a7bcc8d0af4e670b42462b5 /cli
parent25befff0209c08617cd3b7a4df0a155fe5e1ea2f (diff)
scope
Diffstat (limited to 'cli')
-rw-r--r--cli/app/search/search_dense.py2
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')