imagededup icon indicating copy to clipboard operation
imagededup copied to clipboard

No module named 'imagededup.evaluation'

Open papayalove opened this issue 2 years ago • 4 comments

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 avatar Jul 26 '23 07:07 papayalove

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'

papayalove avatar Jul 26 '23 08:07 papayalove

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.

tanujjain avatar Jul 28 '23 14:07 tanujjain

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

papayalove avatar Aug 01 '23 08:08 papayalove