An open API service indexing awesome lists of open source software.

https://github.com/dashesy/imagesorter

Sort images in a directory based on similarity features and dedup
https://github.com/dashesy/imagesorter

Last synced: 8 months ago
JSON representation

Sort images in a directory based on similarity features and dedup

Awesome Lists containing this project

README

          

# imagesorter
Sort images in a folder based on similarity features.
The default featurizer is 'mobilenet+resnet18' hybrid, which performs the best combining OD and Classification features.

# Usage

```bash
python sort.py /path/to/input/directory/ /path/to/output/directory/
```

To use different featurizer

```bash
python sort.py /path/to/input/directory /path/to/output/directory/ --featurizer mobilenet
```

Decrease the dedup threshold to deduplicate more

```bash
python sort.py /path/to/input/directory /path/to/output/directory/ --dedup 0.99
```

# TODO

1. Paralelize and cache to disk to handle large number of images. (Currently fine up to few hundreds)
2. Add option to minimize the cost function (max sum path) for maximum similarity sort. Can start from current sort as a good initial condition.