"git@developer.sourcefind.cn:OpenDAS/torch-cluster.git" did not exist on "f7af865f538f102d41f95553be1900fb0607fac7"
Unverified Commit ed4710b1 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Put back StanfordCars.download (the function, NOT the feature) (#8324)

parent 4028d9f8
......@@ -61,12 +61,7 @@ class StanfordCars(VisionDataset):
self._images_base_path = self._base_folder / "cars_test"
if download:
raise ValueError(
"The original URL is broken so the StanfordCars dataset is not available for automatic "
"download anymore. You can try to download it manually following "
"https://github.com/pytorch/vision/issues/7545#issuecomment-1631441616, "
"and set download=False to avoid this error."
)
self.download()
if not self._check_exists():
raise RuntimeError(
......@@ -104,3 +99,11 @@ class StanfordCars(VisionDataset):
return False
return self._annotations_mat_path.exists() and self._images_base_path.is_dir()
def download(self):
raise ValueError(
"The original URL is broken so the StanfordCars dataset is not available for automatic "
"download anymore. You can try to download it manually following "
"https://github.com/pytorch/vision/issues/7545#issuecomment-1631441616, "
"and set download=False to avoid this error."
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment