File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -286,17 +286,23 @@ Next run fastdup with `run_mode=2` (which skips the image extraction phase and l
286
286
287
287
Example:
288
288
``` python
289
+ import os
289
290
import fastdup
290
291
import numpy as np
292
+
291
293
filesnames = [' a.jpg' , ' b.jpg' , ' c.jpg' ]
292
294
d = 20 # feature length
293
295
n = 3 # number of images
294
296
work_dir = ' /path/to/work_dir' # temp working directory
295
297
array = np.random.rand(n,d)
296
298
fastdup.save_binary_feature(work_dir, filenames, array)
297
299
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' ))
298
302
```
299
303
304
+ Note: the ` similarity.csv ` file is saved to the ` work_dir ` .
305
+
300
306
## Support for s3 cloud/ google storage <a name =" s3 " />
301
307
302
308
[ Detailed instructions] ( CLOUD.md )
You can’t perform that action at this time.
0 commit comments