diff --git a/torchvision/models/_utils.py b/torchvision/models/_utils.py index 7c67ea4ec91..f73d193805e 100644 --- a/torchvision/models/_utils.py +++ b/torchvision/models/_utils.py @@ -134,7 +134,7 @@ def wrapper(*args: Any, **kwargs: Any) -> D: keyword_only_kwargs = dict(zip(keyword_only_params, keyword_only_args)) warnings.warn( f"Using {sequence_to_str(tuple(keyword_only_kwargs.keys()), separate_last='and ')} as positional " - f"parameter(s) is deprecated since 0.13 and will be removed in 0.15. Please use keyword parameter(s) " + f"parameter(s) is deprecated since 0.13 and may be removed in the future. Please use keyword parameter(s) " f"instead." ) kwargs.update(keyword_only_kwargs) @@ -206,13 +206,13 @@ def inner_wrapper(*args: Any, **kwargs: Any) -> M: if not pretrained_positional: warnings.warn( - f"The parameter '{pretrained_param}' is deprecated since 0.13 and will be removed in 0.15, " + f"The parameter '{pretrained_param}' is deprecated since 0.13 and may be removed in the future, " f"please use '{weights_param}' instead." ) msg = ( f"Arguments other than a weight enum or `None` for '{weights_param}' are deprecated since 0.13 and " - f"will be removed in 0.15. " + f"may be removed in the future. " f"The current behavior is equivalent to passing `{weights_param}={default_weights_arg}`." ) if pretrained_arg: @@ -250,7 +250,7 @@ def _ovewrite_value_param(param: str, actual: Optional[V], expected: V) -> V: class _ModelURLs(dict): def __getitem__(self, item): warnings.warn( - "Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and will " - "be removed in 0.15. Please access them via the appropriate Weights Enum instead." + "Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and may " + "be removed in the future. Please access them via the appropriate Weights Enum instead." ) return super().__getitem__(item) diff --git a/torchvision/transforms/_functional_video.py b/torchvision/transforms/_functional_video.py index f969a2542d0..91df7d42cd7 100644 --- a/torchvision/transforms/_functional_video.py +++ b/torchvision/transforms/_functional_video.py @@ -4,7 +4,7 @@ warnings.warn( - "The 'torchvision.transforms._functional_video' module is deprecated since 0.12 and will be removed in 0.14. " + "The 'torchvision.transforms._functional_video' module is deprecated since 0.12 and will be removed in the future. " "Please use the 'torchvision.transforms.functional' module instead." ) diff --git a/torchvision/transforms/_transforms_video.py b/torchvision/transforms/_transforms_video.py index 1ed6de7612d..a67eca5ff4c 100644 --- a/torchvision/transforms/_transforms_video.py +++ b/torchvision/transforms/_transforms_video.py @@ -20,7 +20,7 @@ warnings.warn( - "The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in 0.14. " + "The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in the future. " "Please use the 'torchvision.transforms' module instead." )