changed download speed info
Browse files
ecoset.py
CHANGED
@@ -124,7 +124,7 @@ class Ecoset(datasets.GeneratorBasedBuilder):
|
|
124 |
password = getpass(_PWD_MSG)
|
125 |
check_pass(password)
|
126 |
# download and unzip
|
127 |
-
print('Using slow
|
128 |
s3 = S3FileSystem(anon=True, use_ssl=False, default_block_size=int(15 * 2**20))
|
129 |
with s3.open(source_url, "rb") as raw_filw:
|
130 |
with ZipFile(raw_filw, compression=zipfile.ZIP_DEFLATED, allowZip64=True) as zip_file:
|
@@ -139,7 +139,7 @@ class Ecoset(datasets.GeneratorBasedBuilder):
|
|
139 |
password = getpass(_PWD_MSG)
|
140 |
check_pass(password)
|
141 |
# download
|
142 |
-
print('Using "fast"
|
143 |
urlinfo = urlparse(source_url, allow_fragments=False)
|
144 |
if not op.exists(target_dir):
|
145 |
os.makedirs(target_dir)
|
|
|
124 |
password = getpass(_PWD_MSG)
|
125 |
check_pass(password)
|
126 |
# download and unzip
|
127 |
+
print('Using slow Python-based download and unzipping. This can take up to 70h on a typical computer. Sorry.')
|
128 |
s3 = S3FileSystem(anon=True, use_ssl=False, default_block_size=int(15 * 2**20))
|
129 |
with s3.open(source_url, "rb") as raw_filw:
|
130 |
with ZipFile(raw_filw, compression=zipfile.ZIP_DEFLATED, allowZip64=True) as zip_file:
|
|
|
139 |
password = getpass(_PWD_MSG)
|
140 |
check_pass(password)
|
141 |
# download
|
142 |
+
print('Using "fast" native OS unzipping. This will take about 15h on a typical Linux/Mac and 8h on a typical Windows Computer.')
|
143 |
urlinfo = urlparse(source_url, allow_fragments=False)
|
144 |
if not op.exists(target_dir):
|
145 |
os.makedirs(target_dir)
|