summaryrefslogtreecommitdiff
path: root/cli/app/search/json.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/search/json.py')
-rw-r--r--cli/app/search/json.py5
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):