Skip to content

Commit d87fc5d

Browse files
committed
Update officecaltech.py
1 parent d28dabf commit d87fc5d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tllib/vision/datasets/officecaltech.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ def __init__(self, root: str, task: str, download: Optional[bool] = False, **kwa
5151
if download:
5252
for dir in self.directories.values():
5353
if not os.path.exists(os.path.join(root, dir)):
54-
download_and_extract_archive(url="https://cloud.tsinghua.edu.cn/f/e93f2e07d93243d6b57e/?dl=1",
54+
download_and_extract_archive(url="https://cloud.tsinghua.edu.cn/f/eea518fa781a41d1b20e/?dl=1",
5555
download_root=os.path.join(root, 'download'),
56-
filename="officecaltech.tgz", remove_finished=False, extract_root=root)
56+
filename="office-caltech.tgz", remove_finished=False,
57+
extract_root=root)
5758
break
5859
else:
5960
list(map(lambda dir, _: check_exits(root, dir), self.directories.values()))
@@ -72,4 +73,4 @@ def num_classes(self):
7273

7374
@classmethod
7475
def domains(cls):
75-
return list(cls.directories.keys())
76+
return list(cls.directories.keys())

0 commit comments

Comments
 (0)