Skip to content

Commit

Permalink
remove progress indicator from movielens download
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Robie committed Nov 1, 2018
1 parent c4c49d1 commit ff9ab90
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions official/datasets/movielens.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff9ab90

Please sign in to comment.