openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.41k stars 616 forks source link

[Task]: give usage for customed data preprocessing, such as CenterCrop, Normalize #2085

Closed letmejoin closed 1 month ago

letmejoin commented 1 month ago

What is the motivation for this task?

  1. new version anomalib reduce transforms from dataset Calss, but I don't konw how to add it with config.yaml
  2. The error message do not show enough information for solving
  3. image

Describe the solution you'd like

Pleace give usage for customed data preprocessing, such as CenterCrop, Normalize

Additional context

No response

samet-akcay commented 1 month ago

Can you share your config file here?

samet-akcay commented 1 month ago

This documentation shows how to enable custom transforms via both API and CLI https://anomalib.readthedocs.io/en/latest/markdown/guides/how_to/data/transforms.html