Skip to content

Commit

Permalink
Fix num_magnitude_bins default in TrivialAugment
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelGabriel committed Sep 6, 2021
1 parent 30bbae9 commit 9df8f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/transforms/autoaugment.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class TrivialAugmentWide(torch.nn.Module):
image. If given a number, the value is used for all bands respectively.
"""

def __init__(self, num_magnitude_bins: int = 30, interpolation: InterpolationMode = InterpolationMode.NEAREST,
def __init__(self, num_magnitude_bins: int = 31, interpolation: InterpolationMode = InterpolationMode.NEAREST,
fill: Optional[List[float]] = None) -> None:
super().__init__()
self.num_magnitude_bins = num_magnitude_bins
Expand Down

0 comments on commit 9df8f13

Please sign in to comment.