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
286286
287287Example:
288288``` python
289+ import os
289290import fastdup
290291import numpy as np
292+
291293filesnames = [' a.jpg' , ' b.jpg' , ' c.jpg' ]
292294d = 20 # feature length
293295n = 3 # number of images
294296work_dir = ' /path/to/work_dir' # temp working directory
295297array = np.random.rand(n,d)
296298fastdup.save_binary_feature(work_dir, filenames, array)
297299fastdup.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 )
You can’t perform that action at this time.
0 commit comments