From 20a18eb423b90704752bf741258b0733b2f90403 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 11 Feb 2020 03:18:34 +0100 Subject: what the... --- cli/app/search/search_dense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py index d91590c..04c99ab 100644 --- a/cli/app/search/search_dense.py +++ b/cli/app/search/search_dense.py @@ -194,7 +194,7 @@ 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_e, feat_err_e = feature_loss(feature_extractor, opt_feature_layers, BATCH_SIZE, gen_img_ch, target_img_ch, int((img_w - width) / 2), int((img_w - width) / 2), height, width) 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 -- cgit v1.2.3-70-g09d2