Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions torchvision/transforms/v2/_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down