From af40e6e24086e17610cbde3ecda686e4075068c2 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 16 Jun 2022 14:34:10 +0100 Subject: [PATCH] Fix all broken URLs --- torchvision/datasets/caltech.py | 4 ++-- torchvision/datasets/kinetics.py | 2 +- torchvision/models/quantization/googlenet.py | 2 +- torchvision/models/quantization/resnet.py | 8 ++++---- torchvision/prototype/datasets/_builtin/caltech.py | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/torchvision/datasets/caltech.py b/torchvision/datasets/caltech.py index b0fa7310cf2..e95043ce2de 100644 --- a/torchvision/datasets/caltech.py +++ b/torchvision/datasets/caltech.py @@ -9,7 +9,7 @@ class Caltech101(VisionDataset): - """`Caltech 101 `_ Dataset. + """`Caltech 101 `_ Dataset. .. warning:: @@ -146,7 +146,7 @@ def extra_repr(self) -> str: class Caltech256(VisionDataset): - """`Caltech 256 `_ Dataset. + """`Caltech 256 `_ Dataset. Args: root (string): Root directory of dataset where directory diff --git a/torchvision/datasets/kinetics.py b/torchvision/datasets/kinetics.py index b3c94c50de1..2ba5e50845e 100644 --- a/torchvision/datasets/kinetics.py +++ b/torchvision/datasets/kinetics.py @@ -21,7 +21,7 @@ def _dl_wrap(tarpath: str, videopath: str, line: str) -> None: class Kinetics(VisionDataset): - """`Generic Kinetics `_ + """`Generic Kinetics `_ dataset. Kinetics-400/600/700 are action recognition video datasets. diff --git a/torchvision/models/quantization/googlenet.py b/torchvision/models/quantization/googlenet.py index 644df8ae496..c535300a68c 100644 --- a/torchvision/models/quantization/googlenet.py +++ b/torchvision/models/quantization/googlenet.py @@ -165,7 +165,7 @@ def googlenet( quantize (bool, optional): If True, return a quantized version of the model. Default is False. **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableGoogLeNet`` base class. Please refer to the `source code - `_ + `_ for more details about this class. .. autoclass:: torchvision.models.quantization.GoogLeNet_QuantizedWeights diff --git a/torchvision/models/quantization/resnet.py b/torchvision/models/quantization/resnet.py index 891b608ce01..d51bde50a57 100644 --- a/torchvision/models/quantization/resnet.py +++ b/torchvision/models/quantization/resnet.py @@ -302,7 +302,7 @@ def resnet18( quantize (bool, optional): If True, return a quantized version of the model. Default is False. **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableResNet`` base class. Please refer to the `source code - `_ + `_ for more details about this class. .. autoclass:: torchvision.models.quantization.ResNet18_QuantizedWeights @@ -351,7 +351,7 @@ def resnet50( quantize (bool, optional): If True, return a quantized version of the model. Default is False. **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableResNet`` base class. Please refer to the `source code - `_ + `_ for more details about this class. .. autoclass:: torchvision.models.quantization.ResNet50_QuantizedWeights @@ -400,7 +400,7 @@ def resnext101_32x8d( quantize (bool, optional): If True, return a quantized version of the model. Default is False. **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableResNet`` base class. Please refer to the `source code - `_ + `_ for more details about this class. .. autoclass:: torchvision.models.quantization.ResNeXt101_32X8D_QuantizedWeights @@ -443,7 +443,7 @@ def resnext101_64x4d( quantize (bool, optional): If True, return a quantized version of the model. Default is False. **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableResNet`` base class. Please refer to the `source code - `_ + `_ for more details about this class. .. autoclass:: torchvision.models.quantization.ResNeXt101_64X4D_QuantizedWeights diff --git a/torchvision/prototype/datasets/_builtin/caltech.py b/torchvision/prototype/datasets/_builtin/caltech.py index 3a9a8f08d41..fe3dc2000e6 100644 --- a/torchvision/prototype/datasets/_builtin/caltech.py +++ b/torchvision/prototype/datasets/_builtin/caltech.py @@ -30,7 +30,7 @@ def _caltech101_info() -> Dict[str, Any]: @register_dataset("caltech101") class Caltech101(Dataset): """ - - **homepage**: http://www.vision.caltech.edu/Image_Datasets/Caltech101 + - **homepage**: https://data.caltech.edu/records/20086 - **dependencies**: - _ """ @@ -159,7 +159,7 @@ def _caltech256_info() -> Dict[str, Any]: @register_dataset("caltech256") class Caltech256(Dataset): """ - - **homepage**: http://www.vision.caltech.edu/Image_Datasets/Caltech256 + - **homepage**: https://data.caltech.edu/records/20087 """ def __init__(