|
21 | 21 | from monai.data.meta_tensor import MetaTensor |
22 | 22 | from monai.networks.utils import eval_mode |
23 | 23 | from monai.transforms import Compose, GaussianSmooth, Lambda, ScaleIntensity, SpatialCrop |
24 | | -from monai.utils import deprecated_arg, ensure_tuple_rep |
25 | | -from monai.visualize.visualizer import default_upsampler |
| 24 | +from monai.utils import ensure_tuple_rep |
26 | 25 |
|
27 | 26 |
|
28 | 27 | class OcclusionSensitivity: |
@@ -74,24 +73,11 @@ class OcclusionSensitivity: |
74 | 73 | - :py:class:`monai.visualize.occlusion_sensitivity.OcclusionSensitivity.` |
75 | 74 | """ |
76 | 75 |
|
77 | | - @deprecated_arg( |
78 | | - name="pad_val", |
79 | | - since="1.0", |
80 | | - removed="1.2", |
81 | | - msg_suffix="Please use `mode`. For backwards compatibility, use `mode=mean_img`.", |
82 | | - ) |
83 | | - @deprecated_arg(name="stride", since="1.0", removed="1.2", msg_suffix="Please use `overlap`.") |
84 | | - @deprecated_arg(name="per_channel", since="1.0", removed="1.2") |
85 | | - @deprecated_arg(name="upsampler", since="1.0", removed="1.2") |
86 | 76 | def __init__( |
87 | 77 | self, |
88 | 78 | nn_module: nn.Module, |
89 | | - pad_val: float | None = None, |
90 | 79 | mask_size: int | Sequence = 16, |
91 | 80 | n_batch: int = 16, |
92 | | - stride: int | Sequence = 1, |
93 | | - per_channel: bool = True, |
94 | | - upsampler: Callable | None = default_upsampler, |
95 | 81 | verbose: bool = True, |
96 | 82 | mode: str | float | Callable = "gaussian", |
97 | 83 | overlap: float = 0.25, |
|
0 commit comments