diff --git a/torchvision/transforms/v2/_geometry.py b/torchvision/transforms/v2/_geometry.py index f1eed87b9c0..98aa51ee2ed 100644 --- a/torchvision/transforms/v2/_geometry.py +++ b/torchvision/transforms/v2/_geometry.py @@ -338,6 +338,10 @@ def __init__( self.interpolation = _check_interpolation(interpolation) self.expand = expand + # This is just here for BC + # TODO: investigate if this actually has a significant effect on model acc + if fill is None: + fill = 0 self.fill = fill self._fill = _setup_fill_arg(fill) @@ -396,6 +400,11 @@ def __init__( self.shear = shear self.interpolation = _check_interpolation(interpolation) + + # This is just here for BC + # TODO: investigate if this actually has a significant effect on model acc + if fill is None: + fill = 0 self.fill = fill self._fill = _setup_fill_arg(fill) @@ -568,6 +577,11 @@ def __init__( self.distortion_scale = distortion_scale self.interpolation = _check_interpolation(interpolation) + + # This is just here for BC + # TODO: investigate if this actually has a significant effect on model acc + if fill is None: + fill = 0 self.fill = fill self._fill = _setup_fill_arg(fill)