Skip to content

Commit

Permalink
replaced support index with int to support python3.7 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
samet-akcay authored Jan 18, 2022
1 parent 2575a51 commit 341bddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anomalib/data/tiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from itertools import product
from math import ceil
from typing import Optional, Sequence, SupportsIndex, Tuple, Union
from typing import Optional, Sequence, Tuple, Union

import torch
import torchvision.transforms as T
Expand Down Expand Up @@ -161,7 +161,7 @@ def __init__(
stride: Union[int, Sequence],
remove_border_count: int = 0,
mode: str = "padding",
tile_count: SupportsIndex = 4,
tile_count: int = 4,
) -> None:

self.tile_size_h, self.tile_size_w = self.__validate_size_type(tile_size)
Expand Down

0 comments on commit 341bddf

Please sign in to comment.