Skip to content

Commit a3679ba

Browse files
author
dbickson
committed
clarifying docs
1 parent 55265fd commit a3679ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

RUN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,23 @@ Next run fastdup with `run_mode=2` (which skips the image extraction phase and l
286286

287287
Example:
288288
```python
289+
import os
289290
import fastdup
290291
import numpy as np
292+
291293
filesnames = ['a.jpg', 'b.jpg', 'c.jpg']
292294
d = 20 # feature length
293295
n = 3 # number of images
294296
work_dir = '/path/to/work_dir' # temp working directory
295297
array = np.random.rand(n,d)
296298
fastdup.save_binary_feature(work_dir, filenames, array)
297299
fastdup.run('/path/to/images', work_dir=work_dir, d=d, run_mode=2)
300+
...
301+
fastdup.create_duplicates_gallery(os.path.join(work_dir, 'similarity.csv'))
298302
```
299303

304+
Note: the `similarity.csv` file is saved to the `work_dir`.
305+
300306
## Support for s3 cloud/ google storage <a name="s3"/>
301307

302308
[Detailed instructions](CLOUD.md)

0 commit comments

Comments
 (0)