diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-11 15:16:11 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-11 15:16:11 +0100 |
| commit | d12aa04e9db12d09ab59d15934d64c185c6535c6 (patch) | |
| tree | 163957ababaac37b79a0179794f1568424bcc3c0 /cli/app/search/json.py | |
| parent | 20a18eb423b90704752bf741258b0733b2f90403 (diff) | |
just invert latent, also invert all these transformed label layers
Diffstat (limited to 'cli/app/search/json.py')
| -rw-r--r-- | cli/app/search/json.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): |
