From 628bee53fc26510d8fa073b2fba7db505922dccb Mon Sep 17 00:00:00 2001 From: "R. Yao" <105953673+rygx@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:07:47 -0700 Subject: [PATCH 1/5] Update stanford-cars docs with more elaborate instructions for offline data --- 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..9a882b50c02 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 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__( From f2765b1d7ee92026257d4a5356b8bd6f6d9c9705 Mon Sep 17 00:00:00 2001 From: "R. Yao" <105953673+rygx@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:13:00 -0700 Subject: [PATCH 2/5] Revise doc --- torchvision/datasets/stanford_cars.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchvision/datasets/stanford_cars.py b/torchvision/datasets/stanford_cars.py index 9a882b50c02..27349c0b2d8 100644 --- a/torchvision/datasets/stanford_cars.py +++ b/torchvision/datasets/stanford_cars.py @@ -15,7 +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 use the dataset offline. + Follow the instructions in ``download`` argument to obtain and use the dataset offline. .. note:: @@ -32,7 +32,7 @@ class StanfordCars(VisionDataset): 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 and configure it using `these instructions `_ - or use an integrated + or use an integrated `dataset on Kaggle `_. In both cases, first download and configure the dataset locally, and use the dataset with ``"download=False"``. From 2f2cccc1f131f11ae2998153f6c2ef0159be75bb Mon Sep 17 00:00:00 2001 From: "R. Yao" <105953673+rygx@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:15:39 -0700 Subject: [PATCH 3/5] Reinstate original github comment link --- torchvision/datasets/stanford_cars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/stanford_cars.py b/torchvision/datasets/stanford_cars.py index 27349c0b2d8..272c04f4cb9 100644 --- a/torchvision/datasets/stanford_cars.py +++ b/torchvision/datasets/stanford_cars.py @@ -31,7 +31,7 @@ class StanfordCars(VisionDataset): 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 and configure it using - `these instructions `_ + `these instructions `_ or use an integrated `dataset on Kaggle `_. In both cases, first download and configure the dataset locally, and use the dataset with From 7e7ec87d146e6baceda86defe1984f93e6861b49 Mon Sep 17 00:00:00 2001 From: "R. Yao" <105953673+rygx@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:16:43 -0700 Subject: [PATCH 4/5] comma --- torchvision/datasets/stanford_cars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/stanford_cars.py b/torchvision/datasets/stanford_cars.py index 272c04f4cb9..96798a97cd2 100644 --- a/torchvision/datasets/stanford_cars.py +++ b/torchvision/datasets/stanford_cars.py @@ -31,7 +31,7 @@ class StanfordCars(VisionDataset): 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 and configure it using - `these instructions `_ + `these instructions `_, or use an integrated `dataset on Kaggle `_. In both cases, first download and configure the dataset locally, and use the dataset with From debf9bdaba80bc36485890933f88c9c92c69539a Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Fri, 11 Oct 2024 12:44:57 +0100 Subject: [PATCH 5/5] Slightly update link --- torchvision/datasets/stanford_cars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/stanford_cars.py b/torchvision/datasets/stanford_cars.py index 96798a97cd2..6264de82eb7 100644 --- a/torchvision/datasets/stanford_cars.py +++ b/torchvision/datasets/stanford_cars.py @@ -33,7 +33,7 @@ class StanfordCars(VisionDataset): 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 `_. + `dataset on Kaggle `_. In both cases, first download and configure the dataset locally, and use the dataset with ``"download=False"``. """