diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-18 14:46:43 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-18 14:46:43 +0100 |
| commit | aa692cb683d0b316091ca0e2dbdaa4c225c7082d (patch) | |
| tree | 4dd42936cf66dbb84ff313f524cb41ba3988a153 /cli | |
| parent | c6344682b8bac3708d99c01f1595c0334a5dfa30 (diff) | |
scope
Diffstat (limited to 'cli')
| -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 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') |
