Skip to content

Commit

Permalink
Update stanford-cars docs with more elaborate instructions for `downl…
Browse files Browse the repository at this point in the history
…oad=False` (#8620)

Co-authored-by: Nicolas Hug <[email protected]>
Co-authored-by: Nicolas Hug <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent 3146a74 commit ed55b03
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit ed55b03

Please sign in to comment.