diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-14 16:34:18 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-14 16:34:18 +0100 |
| commit | dfaac1a79fdc2219e2ec597d3781a81992716e24 (patch) | |
| tree | 6be7ab6de3027b113383b67e8f1e03d3ea00dc03 /cli/app/search/search_dense.py | |
| parent | 2a4a091d41aebb012a59a586a49d7e95cdf88957 (diff) | |
vgg feature loss
Diffstat (limited to 'cli/app/search/search_dense.py')
| -rw-r--r-- | cli/app/search/search_dense.py | 4 |
1 files changed, 2 insertions, 2 deletions
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') |
