From dfaac1a79fdc2219e2ec597d3781a81992716e24 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 14 Feb 2020 16:34:18 +0100 Subject: vgg feature loss --- cli/app/search/search_dense.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/app') diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py index a62d3b6..f453a44 100644 --- a/cli/app/search/search_dense.py +++ b/cli/app/search/search_dense.py @@ -582,10 +582,10 @@ def feature_loss_vgg(feature_extractor, opt_feature_layers, BATCH_SIZE, img_a, i global scope_index scope_index += 1 - gen_fc, gen_feat_ex = nets.vgg.vgg_16(img_a, scope='vgg_16_{}'.format(scope)) + gen_fc, gen_feat_ex = nets.vgg.vgg_16(img_a, scope='vgg_16_{}'.format(scope_index)) scope_index += 1 - target_fc, target_feat_ex = nets.vgg.vgg_16(img_b, scope='vgg_16_{}'.format(scope)) + target_fc, target_feat_ex = nets.vgg.vgg_16(img_b, scope='vgg_16_{}'.format(scope_index)) # 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