Skip to content

Commit 9df8f13

Browse files
committed
Fix num_magnitude_bins default in TrivialAugment
1 parent 30bbae9 commit 9df8f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/autoaugment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class TrivialAugmentWide(torch.nn.Module):
345345
image. If given a number, the value is used for all bands respectively.
346346
"""
347347

348-
def __init__(self, num_magnitude_bins: int = 30, interpolation: InterpolationMode = InterpolationMode.NEAREST,
348+
def __init__(self, num_magnitude_bins: int = 31, interpolation: InterpolationMode = InterpolationMode.NEAREST,
349349
fill: Optional[List[float]] = None) -> None:
350350
super().__init__()
351351
self.num_magnitude_bins = num_magnitude_bins

0 commit comments

Comments
 (0)