Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stanford-cars docs with more elaborate instructions for download=False #8620

Merged
merged 8 commits into from
Oct 11, 2024
9 changes: 7 additions & 2 deletions torchvision/datasets/stanford_cars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand All @@ -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 <https://github.com/pytorch/vision/issues/7545#issuecomment-1631441616>`_.
seems to be available on Kaggle so you can try to manually download and configure it using
`these instructions <https://github.com/pytorch/vision/issues/7545#issuecomment-1631441616>`_,
or use an integrated
`dataset on Kaggle <https://github.com/pytorch/vision/issues/7545#issuecomment-2282674373>`_.
In both cases, first download and configure the dataset locally, and use the dataset with
``"download=False"``.
"""

def __init__(
Expand Down
Loading