diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-08 18:36:05 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-08 18:36:05 +0100 |
| commit | dda7963dd3b31ec8baa0da67b2fc35fecfbbdd84 (patch) | |
| tree | 7729b386069df00b9d9438ebd07f501de09a12b0 /cli/app/search/search_class.py | |
| parent | 4f79595d83f6885bf648db9043e26196281a35f4 (diff) | |
dont clip so much - clip even less
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 139ca36..0fcfdfd 100644 --- a/cli/app/search/search_class.py +++ b/cli/app/search/search_class.py @@ -88,7 +88,7 @@ def find_nearest_vector(sess, generator, opt_fp_in, opt_dims, out_images, out_la y_initial = create_labels_uniform(batch_size, vocab_size) input_z = tf.compat.v1.Variable(z_initial, dtype=np.float32, constraint=lambda t: tf.clip_by_value(t, -2.5, 2.5)) - input_y = tf.compat.v1.Variable(y_initial, dtype=np.float32, constraint=lambda t: tf.clip_by_value(t, -0.5, 1.5)) + input_y = tf.compat.v1.Variable(y_initial, dtype=np.float32, constraint=lambda t: tf.clip_by_value(t, 0, 1.5)) input_trunc = tf.compat.v1.constant(1.0) output = generator({ 'z': input_z, |
