Skip to content

Commit 055ceda

Browse files
committed
DCO Remediation Commit for Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>
I, Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>, hereby add my Signed-off-by to this commit: b899421 I, Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>, hereby add my Signed-off-by to this commit: aaa640f I, Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>, hereby add my Signed-off-by to this commit: c85976f I, Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>, hereby add my Signed-off-by to this commit: f2fe14e Signed-off-by: Juan Pablo de la Cruz Gutiérrez <juampatronics@gmail.com>
1 parent f2fe14e commit 055ceda

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

monai/transforms/regularization/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, batch_size: int, alpha: float = 1.0) -> None:
4242
self.batch_size = batch_size
4343

4444
@abstractmethod
45-
def apply(cls, data: torch.Tensor):
45+
def apply(self, data: torch.Tensor):
4646
raise NotImplementedError()
4747

4848
def randomize(self, data=None) -> None:

monai/transforms/regularization/dictionary.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class MixUpd(MapTransform):
2828
for consistency, i.e. images and labels must be applied the same augmenation.
2929
"""
3030

31-
def __init__(self, keys: KeysCollection, batch_size: int, alpha: float = 1.0, allow_missing_keys: bool = False) -> None:
31+
def __init__(
32+
self, keys: KeysCollection, batch_size: int, alpha: float = 1.0, allow_missing_keys: bool = False
33+
) -> None:
3234
super().__init__(keys, allow_missing_keys)
3335
self.mixup = MixUp(batch_size, alpha)
3436

0 commit comments

Comments
 (0)