Datasets:
Chengzu Li
commited on
Commit
•
eae6ec5
1
Parent(s):
0d85ba6
Update topviewrs.py
Browse files- topviewrs.py +2 -2
topviewrs.py
CHANGED
@@ -108,9 +108,9 @@ class TOPVIEWRS(datasets.GeneratorBasedBuilder):
|
|
108 |
|
109 |
def _split_generators(self, dl_manager):
|
110 |
zip_file = dl_manager.download({"images": _URLS['images']})
|
111 |
-
os.rename(zip_file, os.path.join(os.path.dirname(zip_file), _URLS['images']))
|
112 |
try:
|
113 |
-
shutil.unpack_archive(os.path.join(os.path.dirname(zip_file), _URLS['images']), self.config.image_save_dir)
|
114 |
except:
|
115 |
raise FileNotFoundError(f"Unpacking the image data.zip failed. Make sure that you have the zip file at {zip_file}. ")
|
116 |
|
|
|
108 |
|
109 |
def _split_generators(self, dl_manager):
|
110 |
zip_file = dl_manager.download({"images": _URLS['images']})
|
111 |
+
os.rename(zip_file, os.path.join(os.path.dirname(zip_file['images']), _URLS['images']))
|
112 |
try:
|
113 |
+
shutil.unpack_archive(os.path.join(os.path.dirname(zip_file['images']), _URLS['images']), self.config.image_save_dir)
|
114 |
except:
|
115 |
raise FileNotFoundError(f"Unpacking the image data.zip failed. Make sure that you have the zip file at {zip_file}. ")
|
116 |
|