visual-layer / fastdup

fastdup is a powerful free tool designed to rapidly extract valuable insights from your image & video datasets. Assisting you to increase your dataset images & labels quality and reduce your data operations costs at an unparalleled scale.
Other
1.56k stars 76 forks source link

[Bug]: fastdup.search raises an Error: PIL.Image has not attribute 'Resampling' #176

Closed roi2405 closed 1 year ago

roi2405 commented 1 year ago

What happened?

after using 'fastdup.create' and 'fastdup.run', running 'fastdup.search' on the work directory that was used for 'fastdup.run' raises an attribute error as specified above. note that it fails on the 'fastdup.search', and not on the 'fastdup.init_search'.

What did you expect to see?

No response

What version of fastdup were you runnning on?

0.923

What version of Python were you running on?

Python 3.10

Operating System

Google Colab

Reproduction steps

No response

Relevant log output

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/fastdup/__init__.py", line 2082, in search
    img = img.resize((224, 224), Image.Resampling.NEAREST)
  File "/usr/local/lib/python3.10/dist-packages/PIL/Image.py", line 77, in __getattr__
    raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
AttributeError: module 'PIL.Image' has no attribute 'Resampling'

Attach a screenshot [Optional]

image

Contact Details [Optional]

roi2405@gmail.com

dbickson commented 1 year ago

Fixed in 0.925