idealo / imagededup

😎 Finding duplicate images made easy!
https://idealo.github.io/imagededup/
Apache License 2.0
5.18k stars 459 forks source link

Add ability to use custom CNN models #190

Closed tanujjain closed 1 year ago

tanujjain commented 1 year ago

What

Why

How

Choice of models

EfficientNet and ViT have been added with the following in mind:

  1. Availability on torchvision.models subpackage.
  2. Size of the model- wanted to avoid packaging models that are too large (too many params = large memory requirements and increased feature generation times.)
  3. SOTA on imagenet dataset.

The CustomModel can also use models that are not hosted on torchvision. To see an example of using a model from huggingface model hub, check out the example notebook use_custom_model.ipynb.