Skip to content

Commit a7d51c4

Browse files
committed
Add percentage downloaded progress thing to mnist (since the reporthook already was there)
1 parent fbe9f4f commit a7d51c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/dataloaders/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _download_data(path: Path) -> None:
6161
if not os.path.exists(
6262
file_path.replace(".gz", "")
6363
): # Avoid re-downloading
64-
urlretrieve(url, file_path)
64+
urlretrieve(url, file_path, reporthook=self.__reporthook)
6565
with gzip.open(file_path, "rb") as f_in:
6666
with open(file_path.replace(".gz", ""), "wb") as f_out:
6767
f_out.write(f_in.read())

0 commit comments

Comments
 (0)