Skip to content

Commit 53e2cf4

Browse files
Docs: update custom pre-processing class to import from correct origin (#2731)
Docs: update custom pre-processing class to import from origin correctly Currently the docs import `get_exportable_transform` by means of `from anomalib.utils.transform import get_exportable_transform` which no longer exists as of `v2.0.0`. This file is now at `anomalib.pre_processing.utils.transform` as per 084331d. Signed-off-by: Lucian Chauvin <lucianchauvin@gmail.com>
1 parent 6e3a659 commit 53e2cf4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1616

1717
### Changed
1818

19+
- Update import location for `get_exportable_transform` from `anomalib.utils.transform` to `anomalib.pre_processing.utils.transform`. This update aligns with the reorganization of the `anomalib` project in `v2.0.0`, and the previous path no longer exists.
20+
1921
### Deprecated
2022

2123
### Fixed

docs/source/markdown/guides/how_to/models/pre_processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Advanced users may want to define their own pre-processing pipeline. This can be
215215

216216
```python
217217
from anomalib.pre_processing import PreProcessor
218-
from anomalib.utils.transform import get_exportable_transform
218+
from anomalib.pre_processing.utils.transform import get_exportable_transform
219219
from torchvision.transforms.v2 import Transform
220220

221221

0 commit comments

Comments
 (0)