"vscode:/vscode.git/clone" did not exist on "092a786984d4e69812e4de538c7a40921d5d1281"
Commit ff9ab90b authored by Taylor Robie's avatar Taylor Robie
Browse files

remove progress indicator from movielens download

parent c4c49d1a
......@@ -111,12 +111,7 @@ def _download_and_clean(dataset, data_dir):
temp_dir = tempfile.mkdtemp()
try:
zip_path = os.path.join(temp_dir, "{}.zip".format(dataset))
def _progress(count, block_size, total_size):
sys.stdout.write("\r>> Downloading {} {:.1f}%".format(
zip_path, 100.0 * count * block_size / total_size))
sys.stdout.flush()
zip_path, _ = urllib.request.urlretrieve(url, zip_path, _progress)
zip_path, _ = urllib.request.urlretrieve(url, zip_path)
statinfo = os.stat(zip_path)
# A new line to clear the carriage return from download progress
# tf.logging.info is not applicable here
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment