Skip to content

Commit ed55b03

Browse files
rygxNicolasHug
andauthored
Update stanford-cars docs with more elaborate instructions for download=False (#8620)
Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
1 parent 3146a74 commit ed55b03

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

torchvision/datasets/stanford_cars.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class StanfordCars(VisionDataset):
1515
has been split roughly in a 50-50 split
1616
1717
The original URL is https://ai.stanford.edu/~jkrause/cars/car_dataset.html, but it is broken.
18+
Follow the instructions in ``download`` argument to obtain and use the dataset offline.
1819
1920
.. note::
2021
@@ -29,8 +30,12 @@ class StanfordCars(VisionDataset):
2930
target and transforms it.
3031
download (bool, optional): This parameter exists for backward compatibility but it does not
3132
download the dataset, since the original URL is not available anymore. The dataset
32-
seems to be available on Kaggle so you can try to manually download it using
33-
`these instructions <https://github.com/pytorch/vision/issues/7545#issuecomment-1631441616>`_.
33+
seems to be available on Kaggle so you can try to manually download and configure it using
34+
`these instructions <https://github.com/pytorch/vision/issues/7545#issuecomment-1631441616>`_,
35+
or use an integrated
36+
`dataset on Kaggle <https://github.com/pytorch/vision/issues/7545#issuecomment-2282674373>`_.
37+
In both cases, first download and configure the dataset locally, and use the dataset with
38+
``"download=False"``.
3439
"""
3540

3641
def __init__(

0 commit comments

Comments
 (0)