Skip to content

Commit 09eaa6d

Browse files
committedSep 4, 2018
Minor fixes, README update
1 parent a22d918 commit 09eaa6d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
 

‎README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Learning Relationship-aware Visual Features
22
This repository contains the code for reproducing results from our paper: [link]
3-
3+
![r-cbir](https://user-images.githubusercontent.com/25117311/45022838-7e171f80-b035-11e8-8b2c-2842582291c6.png)
44
## Get ready
55
1. Download and extract CLEVR_v1.0 dataset: http://cs.stanford.edu/people/jcjohns/clevr/
66

@@ -12,21 +12,22 @@ This repository contains the code for reproducing results from our paper: [link]
1212
1313
3. Move into the cloned repository and run
1414
```
15+
chmod u+x *.sh
1516
./setup.sh path/to/CLEVR_v1.0
1617
```
1718
substituting ```path/to/CLEVR_v1.0``` with the path to your CLEVR extracted folder. This script will download RMAC features for CLEVR dataset and precalculated GED distances (ground-truth). Then, it will extract features from 2S-RN using pretrained IR model.
1819
1920
2021
## Results
2122
### Spearman-Rho correlation
22-
This section is aimed at reproducing Spearman-Rho correlation values for RMAC, RN and 2S-RN features against the generated GT.
23+
In order to reproduce Spearman-Rho correlation values for RMAC, RN and 2S-RN features against the generated GT, run
2324
```
2425
./compute_results.sh -d path/to/CLEVR_v1.0
2526
```
26-
This script will setup a virtual environment for computing all RMAC, RN and 2S-RN distances for both soft and hard matches.
27-
**NOTE**:The first time this script is run may take some time; once finished, results will be cached and final spearman-rho metrics will be immediately available at every successive run.
27+
This script will compute distances, rankings and correlation values for both soft and hard matches.
28+
**NOTE**:The first time this script is run may take some time; once finished, results are cached and final spearman-rho metrics will be immediately available at every successive run.
2829
29-
This script prints spearman-rho correlation values in the current terminal and creates a graphical visualization storing it in pdf files in the ```output``` folder.
30+
This script prints Spearman-Rho correlation values in the current terminal and creates a graphical visualization storing it in pdf files in the ```output``` folder.
3031
3132
In order to modify parameters such as *start* and *end* query indexes or number of processes used to compute GED distances, run
3233
```
@@ -38,8 +39,8 @@ It is possible to view the top relevant images using RMAC, RN and 2S-RN features
3839
```
3940
./compute_visual_results.sh -d path/to/CLEVR_v1.0
4041
```
41-
This script will create a pdf file in the main folder called ```visual_results.pdf``` showing retrieval results for every query image.
42-
By default, only 10 query images are used. To change the range of query images to use you can specify parameters ```-s``` and ```-e```. For more informations, run
42+
This script will create a pdf file in the ```output``` folder called ```visual_results.pdf``` showing retrieval results for every query image.
43+
By default, only 10 query images are used. In order to change the range of query images to use you can specify parameters ```-s``` and ```-e```. For more informations, run
4344
```
4445
./compute_visual_results.sh -h
4546
```

‎order/parallel_dist.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import time
44
import numpy as np
5-
from progressbar import ProgressBar, Percentage, Bar, AdaptiveETA
65
import threading
76

87

‎visualize_stats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def build_bar_graph(merged_stats, name, max_grouping=False, can_be_negative=True
101101
for ind, k in enumerate(feats_sorted_keys):
102102
#pdb.set_trace
103103
f = k.replace('\n',' ')
104-
print('{}--{}: {:.2}; -{:.2}/+{:.2}'.format(name,f,max_mean[ind], yerr[0,ind], yerr[1,ind]))
104+
print('{}--{}: {:.2} +/-{:.2}'.format(name,f,max_mean[ind], yerr[0,ind]))
105105

106106
else:
107107
ax.legend(bars, list(merged_stats.keys()) )

0 commit comments

Comments
 (0)
Please sign in to comment.