We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb31716 commit 3bb37f4Copy full SHA for 3bb37f4
torchvision/datasets/caltech.py
@@ -1,11 +1,12 @@
1
import os
2
import os.path
3
+import shutil
4
from pathlib import Path
5
from typing import Any, Callable, Optional, Union
-import shutil
6
+
7
from PIL import Image
8
-from .utils import download_and_extract_archive, verify_str_arg,extract_archive
9
+from .utils import download_and_extract_archive, extract_archive, verify_str_arg
10
from .vision import VisionDataset
11
12
@@ -144,8 +145,6 @@ def download(self) -> None:
144
145
extract_archive(os.path.join(gzip_folder, gzip_file), self.root)
146
shutil.rmtree(gzip_folder)
147
os.remove(os.path.join(self.root, "caltech-101.zip"))
-
148
149
150
def extra_repr(self) -> str:
151
return "Target type: {target_type}".format(**self.__dict__)
0 commit comments