From ed55b0309fc3ed7d8abc4e4172b8a3c9852ef454 Mon Sep 17 00:00:00 2001 From: "R. Yao" <105953673+rygx@users.noreply.github.com> Date: Fri, 11 Oct 2024 05:03:44 -0700 Subject: [PATCH] Update stanford-cars docs with more elaborate instructions for `download=False` (#8620) Co-authored-by: Nicolas Hug Co-authored-by: Nicolas Hug --- torchvision/datasets/stanford_cars.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/torchvision/datasets/stanford_cars.py b/torchvision/datasets/stanford_cars.py index c029ed0d358..6264de82eb7 100644 --- a/torchvision/datasets/stanford_cars.py +++ b/torchvision/datasets/stanford_cars.py @@ -15,6 +15,7 @@ class StanfordCars(VisionDataset): has been split roughly in a 50-50 split The original URL is https://ai.stanford.edu/~jkrause/cars/car_dataset.html, but it is broken. + Follow the instructions in ``download`` argument to obtain and use the dataset offline. .. note:: @@ -29,8 +30,12 @@ class StanfordCars(VisionDataset): target and transforms it. download (bool, optional): This parameter exists for backward compatibility but it does not download the dataset, since the original URL is not available anymore. The dataset - seems to be available on Kaggle so you can try to manually download it using - `these instructions `_. + seems to be available on Kaggle so you can try to manually download and configure it using + `these instructions `_, + or use an integrated + `dataset on Kaggle `_. + In both cases, first download and configure the dataset locally, and use the dataset with + ``"download=False"``. """ def __init__(