From b9f515173f480a0468fc54d05bf134ebb15b0328 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 8 Jan 2020 20:17:30 +0100 Subject: moving in the live stuff --- cli/app/search/search_class.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 8825ca5..875bc75 100644 --- a/cli/app/search/search_class.py +++ b/cli/app/search/search_class.py @@ -191,9 +191,9 @@ def find_nearest_vector(sess, generator, opt_fp_in, opt_dims, out_images, out_la print('iter: {}, loss: {}'.format(i, curr_loss)) if i > 0: if opt_stochastic_clipping and (i % opt_clip_interval) == 0 and i < opt_steps * 0.45: - sess.run(clip_latent, { clipped_alpha: i / opt_steps }) + sess.run(clip_latent, { clipped_alpha: (i / opt_steps) ** 2 }) if opt_label_clipping and (i % opt_clip_interval) == 0: - sess.run(clip_labels, { normalized_alpha: i / opt_steps }) + sess.run(clip_labels, { normalized_alpha: (i / opt_steps) ** 2 }) if opt_video and opt_snapshot_interval != 0 and (i % opt_snapshot_interval) == 0: phi_guess = sess.run(output) guess_im = imgrid(imconvert_uint8(phi_guess), cols=1) -- cgit v1.2.3-70-g09d2