From 36c6550ed5cb786e0eb7ed8a0252a1d9d9b2936f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 14 Feb 2020 19:01:49 +0100 Subject: vgg feature loss --- cli/app/search/search_dense.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py index 6e0ad09..c589062 100644 --- a/cli/app/search/search_dense.py +++ b/cli/app/search/search_dense.py @@ -589,8 +589,8 @@ def feature_loss_vgg(feature_extractor, opt_feature_layers, BATCH_SIZE, img_a, i # scope_b = 'vgg_16_{}_b'.format(scope_index) scope_a = 'vgg_16' scope_b = 'vgg_16' - 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) + 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_) #, reuse=True) # gen_feat_ex = feature_extractor(dict(images=img_a), as_dict=True, signature='image_feature_vector') # target_feat_ex = feature_extractor(dict(images=img_b), as_dict=True, signature='image_feature_vector') -- cgit v1.2.3-70-g09d2