Skip to content

Commit fe0ac3a

Browse files
committed
Don't raise in Imagenette download
1 parent 3ee81e5 commit fe0ac3a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

torchvision/datasets/imagenette.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ def _check_exists(self) -> bool:
8181

8282
def _download(self):
8383
if self._check_exists():
84-
raise RuntimeError(
85-
f"The directory {self._size_root} already exists. "
86-
f"If you want to re-download or re-extract the images, delete the directory."
87-
)
84+
return
8885

8986
download_and_extract_archive(self._url, self.root, md5=self._md5)
9087

0 commit comments

Comments
 (0)