summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-02-11 03:09:29 +0100
committerJules Laplace <julescarbon@gmail.com>2020-02-11 03:09:29 +0100
commitd0562102c6114bced962359303dd76d8fedf44a3 (patch)
tree3920dcc59fb9719c33b7aaeb4e3747f1ac4f1153 /cli
parent18ec8931416adaaac90f90482441bad6fe558b01 (diff)
what the...
Diffstat (limited to 'cli')
-rw-r--r--cli/app/search/search_dense.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py
index a0baef3..d91590c 100644
--- a/cli/app/search/search_dense.py
+++ b/cli/app/search/search_dense.py
@@ -194,9 +194,10 @@ def find_dense_embedding_for_images(params, opt_tag="inverse_" + timestamp(), op
feat_loss_b, feat_err_b = feature_loss(feature_extractor, opt_feature_layers, BATCH_SIZE, gen_img_ch, target_img_ch, img_w - width, 0, height, width)
feat_loss_c, feat_err_c = feature_loss(feature_extractor, opt_feature_layers, BATCH_SIZE, gen_img_ch, target_img_ch, 0, img_w - width, height, width)
feat_loss_d, feat_err_d = feature_loss(feature_extractor, opt_feature_layers, BATCH_SIZE, gen_img_ch, target_img_ch, img_w - width, img_w - width, height, width)
+ feat_loss_e, feat_err_e = feature_loss(feature_extractor, opt_feature_layers, BATCH_SIZE, gen_img_ch, target_img_ch, (img_w - width) / 2, (img_w - width) / 2, height, width)
- feat_loss_quad = feat_loss_a + feat_loss_b + feat_loss_c + feat_loss_d
- img_feat_err_quad = feat_err_a + feat_err_b + feat_err_c + feat_err_d
+ feat_loss_quad = feat_loss_a + feat_loss_b + feat_loss_c + feat_loss_d + feat_loss_e
+ img_feat_err_quad = feat_err_a + feat_err_b + feat_err_c + feat_err_d + feat_err_e
else:
feat_loss = tf.constant(0.0)