diff --git a/torchvision/datasets/voc.py b/torchvision/datasets/voc.py index b8d33e5c97d..64437caed5b 100644 --- a/torchvision/datasets/voc.py +++ b/torchvision/datasets/voc.py @@ -80,7 +80,8 @@ def __init__( if year == "2007-test": if image_set == "test": warnings.warn( - "Acessing the test image set of the year 2007 with year='2007-test' is deprecated. " + "Accessing the test image set of the year 2007 with year='2007-test' is deprecated " + "since 0.12 and will be removed in 0.14. " "Please use the combination year='2007' and image_set='test' instead." ) year = "2007" diff --git a/torchvision/models/mobilenetv3.py b/torchvision/models/mobilenetv3.py index 97239bea8ad..711888b7c8b 100644 --- a/torchvision/models/mobilenetv3.py +++ b/torchvision/models/mobilenetv3.py @@ -29,8 +29,8 @@ def __init__(self, input_channels: int, squeeze_factor: int = 4): self.relu = self.activation delattr(self, "activation") warnings.warn( - "This SqueezeExcitation class is deprecated and will be removed in future versions. " - "Use torchvision.ops.misc.SqueezeExcitation instead.", + "This SqueezeExcitation class is deprecated since 0.12 and will be removed in 0.14. " + "Use torchvision.ops.SqueezeExcitation instead.", FutureWarning, )