Skip to content

Commit

Permalink
fix tile import typo (#1106)
Browse files Browse the repository at this point in the history
fix import typo

fix example code.
change 
from anomalib.data.tiler import Tiler
to
from anomalib.pre_processing import Tiler
  • Loading branch information
xbkaishui committed May 31, 2023
1 parent 5eff4e6 commit be7161d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anomalib/pre_processing/tiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def tile(self, image: Tensor, use_random_tiling: bool | None = False) -> Tensor:
image: Input image to tile.
Examples:
>>> from anomalib.data.tiler import Tiler
>>> from anomalib.pre_processing import Tiler
>>> tiler = Tiler(tile_size=512,stride=256)
>>> image = torch.rand(size=(2, 3, 1024, 1024))
>>> image.shape
Expand Down Expand Up @@ -393,7 +393,7 @@ def untile(self, tiles: Tensor) -> Tensor:
tiles: Tiles from the input image, generated via tile()..
Examples:
>>> from anomalib.datasets.tiler import Tiler
>>> from anomalib.pre_processing import Tiler
>>> tiler = Tiler(tile_size=512,stride=256)
>>> image = torch.rand(size=(2, 3, 1024, 1024))
>>> image.shape
Expand Down

0 comments on commit be7161d

Please sign in to comment.