Skip to content

Commit 6ae02a5

Browse files
Dmitry YashuninDmitry Yashunin
authored andcommitted
Run sift test from separate directory
1 parent 6efa48c commit 6ae02a5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,15 @@ Contributions are highly welcome!
242242
Please make pull requests against the `develop` branch.
243243

244244
### 200M SIFT test reproduction
245-
To download and extract the bigann dataset:
245+
To download and extract the bigann dataset (from root directory):
246246
```bash
247247
python3 download_bigann.py
248248
```
249249
To compile:
250250
```bash
251-
cmake .
251+
mkdir build
252+
cd build
253+
cmake ..
252254
make all
253255
```
254256

sift_1b.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ void sift_test1B() {
242242
size_t vecdim = 128;
243243
char path_index[1024];
244244
char path_gt[1024];
245-
char *path_q = "bigann/bigann_query.bvecs";
246-
char *path_data = "bigann/bigann_base.bvecs";
245+
char *path_q = "../bigann/bigann_query.bvecs";
246+
char *path_data = "../bigann/bigann_base.bvecs";
247247
sprintf(path_index, "sift1b_%dm_ef_%d_M_%d.bin", subset_size_milllions, efConstruction, M);
248248

249-
sprintf(path_gt, "bigann/gnd/idx_%dM.ivecs", subset_size_milllions);
249+
sprintf(path_gt, "../bigann/gnd/idx_%dM.ivecs", subset_size_milllions);
250250

251251

252252
unsigned char *massb = new unsigned char[vecdim];

0 commit comments

Comments
 (0)