From a194eaa66108d753aac1eac70b7016a9b20897e1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 8 Jan 2020 01:54:28 +0100 Subject: up --- cli/app/search/search_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/app/search/search_class.py') diff --git a/cli/app/search/search_class.py b/cli/app/search/search_class.py index a4bec07..cd53a71 100644 --- a/cli/app/search/search_class.py +++ b/cli/app/search/search_class.py @@ -116,7 +116,7 @@ def find_nearest_vector(sess, generator, opt_fp_in, opt_dims, out_images, out_la ## if computing Feature loss, use these encoders if opt_use_feature_detector: print("Initializing feature detector...") - pix_square_diff = tf.square((target_img - gen_img) / 2.0) + pix_square_diff = tf.square((target - output) / 2.0) mse_loss = tf.reduce_mean(pix_square_diff) feature_extractor = hub.Module("https://tfhub.dev/google/imagenet/inception_v3/feature_vector/1") -- cgit v1.2.3-70-g09d2