We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbe9f4f commit a7d51c4Copy full SHA for a7d51c4
utils/dataloaders/download.py
@@ -61,7 +61,7 @@ def _download_data(path: Path) -> None:
61
if not os.path.exists(
62
file_path.replace(".gz", "")
63
): # Avoid re-downloading
64
- urlretrieve(url, file_path)
+ urlretrieve(url, file_path, reporthook=self.__reporthook)
65
with gzip.open(file_path, "rb") as f_in:
66
with open(file_path.replace(".gz", ""), "wb") as f_out:
67
f_out.write(f_in.read())
0 commit comments