diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-21 14:53:56 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-21 14:53:56 +0100 |
| commit | 3a5b5c4f743a971f0262ba166d16e0349eb7b588 (patch) | |
| tree | 3290a95ead5ee7693b8379cbcc5a09d413ee7ca0 /cli/app/search/search_class.py | |
| parent | f016ec486844c38e84a6d6fc9607c3080ce878a8 (diff) | |
tf math minimum
Diffstat (limited to 'cli/app/search/search_class.py')
| -rw-r--r-- | cli/app/search/search_class.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/app/search/search_class.py b/cli/app/search/search_class.py index e05f58b..7a305b0 100644 --- a/cli/app/search/search_class.py +++ b/cli/app/search/search_class.py @@ -113,7 +113,7 @@ def find_nearest_vector(sess, generator, opt_fp_in, opt_dims, out_images, out_la ## normalize the Y encoding # normalized_labels = tf.nn.l2_normalize(input_y) # tf.reduce_mean(tf.abs(encoding - gen_encoding)) - normalized_labels = input_y / tf.math.minimum(1.0, tf.reduce_max(input_y)) + normalized_labels = input_y / tf.math.maximum(1.0, tf.reduce_max(input_y)) normalized_alpha = tf.compat.v1.placeholder(dtype=np.float32, shape=()) clip_labels = tf.assign(input_y, normalized_labels * (1 - normalized_alpha) + input_y * normalized_alpha) |
