Skip to content

Commit

Permalink
add ex
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael SAMPAIO DE REZENDE committed Jul 2, 2018
1 parent 2ca23f5 commit fbd1cf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions session.py
Expand Up @@ -68,9 +68,9 @@
preselected_queries['1a'] = 11
preselected_queries['1b'] = 11
preselected_queries['1c'] = 11
preselected_queries['1d'] = 30
preselected_queries['1e'] = 30
preselected_queries['1f'] = 30
preselected_queries['1d'] = 50
preselected_queries['1e'] = 50
preselected_queries['1f'] = 50
preselected_queries['2a'] = 42
preselected_queries['2b'] = 42
preselected_queries['2c'] = 7
Expand Down Expand Up @@ -210,7 +210,7 @@
# We use a PCA learnt on landmarks to whiten the output features of 'resnet18-cls-lm-gem'
dfeats = np.load(models_dict['resnet18-cls-lm-gem-pcaw']['dataset'])
qfeats = np.load(models_dict['resnet18-cls-lm-gem-pcaw']['queries'])
dataset.vis_top(dfeats, q_idx, ap_flag=True)
dataset.vis_top(dfeats, q_idx, q_feat=qfeats[q_idx], ap_flag=True)
if args.show_tsne:
do_tsne(dfeats, labels, classes, sec='1e-1')
# run t-SNE including unlabeled images
Expand Down

0 comments on commit fbd1cf4

Please sign in to comment.