@@ -79,7 +79,7 @@ def __init__(
79
79
self .cval = cval
80
80
self .dtype = dtype
81
81
82
- def __call__ (
82
+ def __call__ ( # type: ignore # see issue #495
83
83
self ,
84
84
data_array : np .ndarray ,
85
85
affine = None ,
@@ -162,7 +162,7 @@ def __init__(self, axcodes=None, as_closest_canonical: bool = False, labels=tupl
162
162
self .as_closest_canonical = as_closest_canonical
163
163
self .labels = labels
164
164
165
- def __call__ (self , data_array : np .ndarray , affine = None ):
165
+ def __call__ (self , data_array : np .ndarray , affine = None ): # type: ignore # see issue #495
166
166
"""
167
167
original orientation of `data_array` is defined by `affine`.
168
168
@@ -261,7 +261,7 @@ def __init__(
261
261
self .preserve_range = preserve_range
262
262
self .anti_aliasing = anti_aliasing
263
263
264
- def __call__ (
264
+ def __call__ ( # type: ignore # see issue #495
265
265
self ,
266
266
img ,
267
267
order = None ,
@@ -329,7 +329,7 @@ def __init__(
329
329
self .cval = cval
330
330
self .prefilter = prefilter
331
331
332
- def __call__ (
332
+ def __call__ ( # type: ignore # see issue #495
333
333
self ,
334
334
img ,
335
335
order = None ,
@@ -471,7 +471,7 @@ def __init__(self, k: int = 1, spatial_axes=(0, 1)):
471
471
self .k = k
472
472
self .spatial_axes = spatial_axes
473
473
474
- def __call__ (self , img : np .ndarray ):
474
+ def __call__ (self , img : np .ndarray ): # type: ignore # see issue #495
475
475
"""
476
476
Args:
477
477
img (ndarray): channel first array, must have shape: (num_channels, H[, W, ..., ]),
@@ -567,7 +567,7 @@ def randomize(self):
567
567
self ._do_transform = self .R .random_sample () < self .prob
568
568
self .angle = self .R .uniform (low = self .degrees [0 ], high = self .degrees [1 ])
569
569
570
- def __call__ (
570
+ def __call__ ( # type: ignore # see issue #495
571
571
self ,
572
572
img ,
573
573
order = None ,
@@ -671,7 +671,7 @@ def randomize(self):
671
671
else :
672
672
self ._zoom = self .R .uniform (self .min_zoom , self .max_zoom )
673
673
674
- def __call__ (
674
+ def __call__ ( # type: ignore # see issue #495
675
675
self ,
676
676
img ,
677
677
order = None ,
@@ -887,7 +887,7 @@ def __init__(
887
887
self .as_tensor_output = as_tensor_output
888
888
self .device = device
889
889
890
- def __call__ (
890
+ def __call__ ( # type: ignore # see issue #495
891
891
self ,
892
892
img : Union [np .ndarray , torch .Tensor ],
893
893
grid : Union [np .ndarray , torch .Tensor ],
@@ -977,7 +977,7 @@ def __init__(
977
977
self .padding_mode = padding_mode
978
978
self .mode = mode
979
979
980
- def __call__ (
980
+ def __call__ ( # type: ignore # see issue #495
981
981
self ,
982
982
img : Union [np .ndarray , torch .Tensor ],
983
983
spatial_size = None ,
@@ -1061,7 +1061,7 @@ def randomize(self):
1061
1061
self .do_transform = self .R .rand () < self .prob
1062
1062
self .rand_affine_grid .randomize ()
1063
1063
1064
- def __call__ (
1064
+ def __call__ ( # type: ignore # see issue #495
1065
1065
self ,
1066
1066
img : Union [np .ndarray , torch .Tensor ],
1067
1067
spatial_size = None ,
@@ -1158,7 +1158,7 @@ def randomize(self, spatial_size):
1158
1158
self .deform_grid .randomize (spatial_size )
1159
1159
self .rand_affine_grid .randomize ()
1160
1160
1161
- def __call__ (
1161
+ def __call__ ( # type: ignore # see issue #495
1162
1162
self ,
1163
1163
img : Union [np .ndarray , torch .Tensor ],
1164
1164
spatial_size = None ,
0 commit comments