You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported in the user forum by @function2.
When I use to_grayscale, there’s a deprecation warning:
UserWarning: The function `to_grayscale(...)` is deprecated in will be removed in a future release. Instead, please use `convert_color_space(..., color_space=datapoints.ColorSpace.GRAY)`.
However, I can’t find this function in the current code base
Note that this only applies to torchvision.transforms.v2.function
Originally reported in the user forum by
@function2
.Note that this only applies to
torchvision.transforms.v2.function
vision/torchvision/transforms/v2/functional/_deprecated.py
Lines 12 to 22 in 52eb503
since the v1 version, i.e.
torchvision.transforms.functional
does not emit the warningvision/torchvision/transforms/functional.py
Lines 1249 to 1253 in 52eb503
Fixing the v2 warning was forgotten in #7120.
cc @vfdev-5
The text was updated successfully, but these errors were encountered: