idealo / imagededup

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

No module named 'imagededup.evaluation' #199

Open papayalove opened 1 year ago

papayalove commented 1 year ago
import imagededup
from imagededup.utils import plot_duplicates
from imagededup.methods.hashing import PHash
from imagededup.handlers import search
import imagededup.evaluation
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[76], line 5
      3 from imagededup.methods.hashing import PHash
      4 from imagededup.handlers import search
----> 5 import imagededup.evaluation

ModuleNotFoundError: No module named 'imagededup.evaluation'

I can import PHash by using from imagededup.methods.hashing import PHash. But I cannot import cnn and evaluation

papayalove commented 1 year ago

from imagededup.methods import PHash

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[77], line 1
----> 1 from imagededup.methods import PHash

ModuleNotFoundError: No module named 'imagededup.methods'

But if I use from imagededup.methods.hashing import PHash, it works.

However, this fails again: from imagededup.methods.cnn import *

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[81], line 1
----> 1 from imagededup.methods.cnn import *

ModuleNotFoundError: No module named 'imagededup.methods'
tanujjain commented 1 year ago

Could you please share more info?

Also please try to stick to import formats as defined in the documentation.

papayalove commented 1 year ago

Could you please share more info?

  • imagededup version
  • OS
  • conda/pip version

Also please try to stick to import formats as defined in the documentation.

I tried every import formats.

Linux SH-IDC1-10-140-0-104 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux imagededup 0.3.2 pip 22.0.4

Also, how to solve this problem? It just went timeout after a few minutes. I don't want to download this. Downloading: "https://download.pytorch.org/models/mobilenet_v3_small-047dcff4.pth" to /home/dataproc/.cache/torch/hub/checkpoints/mobilenet_v3_small-047dcff4.pth