Skip to content

Commit 422f2fc

Browse files
authored
update usage codes
1 parent 52b04d9 commit 422f2fc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,21 @@ Visualize the result.
166166

167167
![results](./gallery/gifl_fastdup_quickstart_V1_optimized.gif)
168168

169-
Here are 8 lines of code you'll need in most cases.
169+
In short, you'll need 3 lines of code to run fastdup:
170170

171171
```python
172172
import fastdup
173-
174-
fd = fastdup.create(work_dir, images_dir)
173+
fd = fastdup.create("IMAGE_FOLDER/")
175174
fd.run()
175+
```
176176

177-
fd.vis.duplicates_gallery() # create a visual gallery of found duplicates
177+
And 5 lines of code to visualize issues:
178+
179+
```python
180+
fd.vis.duplicates_gallery() # create a visual gallery of duplicates
178181
fd.vis.outliers_gallery() # create a visual gallery of anomalies
179182
fd.vis.component_gallery() # create a visualization of connected components
180-
fd.vis.stats_gallery() # create a visualization of images statistics (for example blur)
183+
fd.vis.stats_gallery() # create a visualization of images statistics (e.g. blur)
181184
fd.vis.similarity_gallery() # create a gallery of similar images
182185
```
183186

0 commit comments

Comments
 (0)