From c6e1c60716a3e4beeaff3987303fd5ae4a30be31 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 7 Jan 2020 22:05:39 +0100 Subject: add stochastic clipping, latent normalization, feature loss to initial pass --- cli/app/search/search_dense.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'cli/app/search/search_dense.py') diff --git a/cli/app/search/search_dense.py b/cli/app/search/search_dense.py index a538d0d..8ba3340 100644 --- a/cli/app/search/search_dense.py +++ b/cli/app/search/search_dense.py @@ -80,16 +80,9 @@ def find_dense_embedding_for_images(params): os.makedirs(SAMPLES_DIR, exist_ok=True) os.makedirs(VECTOR_DIR, exist_ok=True) - # -------------------------- - # Util functions. - # -------------------------- - # One hot encoding for classes. def one_hot(values): return np.eye(N_CLASS)[values] - # -------------------------- - # Logging. - # -------------------------- summary_writer = tf.summary.FileWriter(LOGS_DIR) def log_stats(name, val, it): summary = tf.Summary(value=[tf.Summary.Value(tag=name, simple_value=val)]) -- cgit v1.2.3-70-g09d2