summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-07 22:21:45 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-07 22:21:45 +0100
commit2b93907f97eea42dfd444c070509488dabbfc2ff (patch)
tree3bfae6fabfb449b8fbb60171aa971bee8b03bd98 /cli
parentc7312ec2f5b3d0f8e92716de64bb7e8809599b50 (diff)
getting latent search updates working...
Diffstat (limited to 'cli')
-rw-r--r--cli/app/commands/biggan/extract_dense_vectors.py1
-rw-r--r--cli/app/commands/biggan/search_class.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/cli/app/commands/biggan/extract_dense_vectors.py b/cli/app/commands/biggan/extract_dense_vectors.py
index 7dc25bc..85e751c 100644
--- a/cli/app/commands/biggan/extract_dense_vectors.py
+++ b/cli/app/commands/biggan/extract_dense_vectors.py
@@ -46,6 +46,7 @@ def cli(ctx, opt_folder_id, opt_latent_steps, opt_dense_steps, opt_video,
tag = "folder_{}".format(folder['id'])
paths = [file['path'] for file in unprocessed_files]
+ opt_feature_layers = opt_feature_layers.split(',')
find_nearest_vector_for_images(
paths=paths,
diff --git a/cli/app/commands/biggan/search_class.py b/cli/app/commands/biggan/search_class.py
index 1f12080..f307054 100644
--- a/cli/app/commands/biggan/search_class.py
+++ b/cli/app/commands/biggan/search_class.py
@@ -25,7 +25,7 @@ from app.search.search_class import find_nearest_vector_for_images
help='Normalize labels every N steps')
@click.option('-feat', '--use_feature_detector', 'opt_use_feature_detector', is_flag=True,
help='Compute feature loss')
-@click.option('-ll', '--feature_layers', 'opt_feature_layers', default="1a,2a,4a,7a"
+@click.option('-ll', '--feature_layers', 'opt_feature_layers', default="1a,2a,4a,7a",
help='Feature layers used for loss')
@click.option('-snap', '--snapshot_interval', 'opt_snapshot_interval', default=20
help='Interval to store sample images')