From d12aa04e9db12d09ab59d15934d64c185c6535c6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 11 Feb 2020 15:16:11 +0100 Subject: just invert latent, also invert all these transformed label layers --- cli/app/search/json.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/app/search/json.py') diff --git a/cli/app/search/json.py b/cli/app/search/json.py index fbdfe84..35a9daf 100644 --- a/cli/app/search/json.py +++ b/cli/app/search/json.py @@ -44,6 +44,7 @@ def make_params_latent(tag): "lambda_reg": 0.1, "dist_loss": False, "sample_size": 4, + "invert_labels": False, "save_progress": True, } @@ -66,7 +67,8 @@ def make_params_dense(tag, folder_id): "clipping": False, "path": os.path.join(app_cfg.DIR_INVERSES, tag), "dataset": os.path.join(app_cfg.DIR_INVERSES, tag, "dataset.latent.hdf5"), - "inv_layer": "Generator_2/G_Z/Reshape:0", + # "inv_layer": "Generator_2/G_Z/Reshape:0", + "inv_layer": "latent", "decay_lr": True, "inv_it": 10000, "generator_path": "https://tfhub.dev/deepmind/biggan-512/2", @@ -100,6 +102,7 @@ def make_params_dense(tag, folder_id): "out_dataset": os.path.join(app_cfg.DIR_INVERSES, tag, "dataset.dense.hdf5"), "save_progress": True, "max_batches": 0, + "invert_labels": True, } def params_dense_dict(tag, folder_id=59): -- cgit v1.2.3-70-g09d2