Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
0b0c9cfd
Unverified
Commit
0b0c9cfd
authored
Nov 01, 2018
by
Toby Boyd
Committed by
GitHub
Nov 01, 2018
Browse files
Merge pull request #5665 from tensorflow/fix/quiet_movielens_download
Remove progress indicator from Movielens download
parents
826eea75
ff9ab90b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
official/datasets/movielens.py
official/datasets/movielens.py
+1
-6
No files found.
official/datasets/movielens.py
View file @
0b0c9cfd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment