Skip to content

Commit f95f64e

Browse files
committed
Use _decompress
1 parent 95044d6 commit f95f64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/datasets/pcam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from PIL import Image
55

6-
from .utils import download_file_from_google_drive, extract_archive, verify_str_arg
6+
from .utils import download_file_from_google_drive, _decompress, verify_str_arg
77
from .vision import VisionDataset
88

99

@@ -127,4 +127,4 @@ def _download(self) -> None:
127127
for file_name, file_id, md5 in self._FILES[self._split].values():
128128
archive_name = file_name + ".gz"
129129
download_file_from_google_drive(file_id, str(self._base_folder), filename=archive_name, md5=md5)
130-
extract_archive(str(self._base_folder / archive_name))
130+
_decompress(str(self._base_folder / archive_name))

0 commit comments

Comments
 (0)