Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: InputNormalizationMethod missing #2451

Open
1 task done
cile98 opened this issue Dec 5, 2024 · 0 comments
Open
1 task done

[Bug]: InputNormalizationMethod missing #2451

cile98 opened this issue Dec 5, 2024 · 0 comments

Comments

@cile98
Copy link

cile98 commented Dec 5, 2024

Describe the bug

In the docs (https://anomalib.readthedocs.io/en/latest/markdown/guides/reference/data/image/folder.html) it shown that InputNormalizationMethod should be used with Folder class, but his enum doesn't exist anymore.

Dataset

N/A

Model

N/A

Steps to reproduce the behavior

from anomalib.data.utils import InputNormalizationMethod

print(InputNormalizationMethod.NONE)

OS information

OS information:

  • OS: [e.g. Ubuntu 20.04]
  • Python version: [e.g. 3.10.0]
  • Anomalib version: [e.g. 0.3.6]
  • PyTorch version: [e.g. 1.9.0]
  • CUDA/cuDNN version: [e.g. 11.1]
  • GPU models and configuration: [e.g. 2x GeForce RTX 3090]
  • Any other relevant information: [e.g. I'm using a custom dataset]

Expected behavior

If InputNormalizationMethod is deprecated I suggest updating documentation and also Folder class annotation to reflect that.

Screenshots

No response

Pip/GitHub

pip

What version/branch did you use?

No response

Configuration YAML

not relevant

Logs

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/dev/oc_ml/oc_alien_detection/training_pipeline/training_pipeline/train.py", line 3, in <module>
    from anomalib.data.utils import InputNormalizationMethod
ImportError: cannot import name 'InputNormalizationMethod' from 'anomalib.data.utils' (/home/dev/oc_ml/oc_alien_detection/training_pipeline/.venv/lib/python3.10/site-packages/anomalib/data/utils/__init__.py)

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant