diff options
Diffstat (limited to 'cli/app/search/search_class.py')
| -rw-r--r-- | cli/app/search/search_class.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/app/search/search_class.py b/cli/app/search/search_class.py index 7db518b..2296cb9 100644 --- a/cli/app/search/search_class.py +++ b/cli/app/search/search_class.py @@ -177,11 +177,11 @@ def find_nearest_vector(sess, generator, opt_fp_in, opt_dims, out_images, out_la curr_loss, _, _ = sess.run([loss, train_step_z, train_step_y], feed_dict=feed_dict) if i % 20 == 0: print('iter: {}, loss: {}'.format(i, curr_loss)) - if opt_stochastic_clipping != 0 && (i % opt_stochastic_clipping) == 0: + if opt_stochastic_clipping != 0 and (i % opt_stochastic_clipping) == 0: sess.run(clip_latent) - if opt_label_clipping != 0 && (i % opt_label_clipping) == 0: + if opt_label_clipping != 0 and (i % opt_label_clipping) == 0: sess.run(clip_labels) - if opt_snapshot_interval != 0 && (i % opt_snapshot_interval) == 0: + if opt_snapshot_interval != 0 and (i % opt_snapshot_interval) == 0: phi_guess = sess.run(output) guess_im = imgrid(imconvert_uint8(phi_guess), cols=1) imwrite(join(app_cfg.DIR_OUTPUTS, fp_frames, 'frame_{:04d}.png'.format(int(i / opt_snapshot_interval))), guess_im) |
