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
0b2c5ba2
Commit
0b2c5ba2
authored
Mar 14, 2017
by
Neal Wu
Committed by
GitHub
Mar 14, 2017
Browse files
Merge pull request #1112 from zym1010/issue1083
fix #1083
parents
d3c8cf9e
dac6755b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tutorials/image/cifar10/cifar10.py
tutorials/image/cifar10/cifar10.py
+3
-2
No files found.
tutorials/image/cifar10/cifar10.py
View file @
0b2c5ba2
...
@@ -394,5 +394,6 @@ def maybe_download_and_extract():
...
@@ -394,5 +394,6 @@ def maybe_download_and_extract():
print
()
print
()
statinfo
=
os
.
stat
(
filepath
)
statinfo
=
os
.
stat
(
filepath
)
print
(
'Successfully downloaded'
,
filename
,
statinfo
.
st_size
,
'bytes.'
)
print
(
'Successfully downloaded'
,
filename
,
statinfo
.
st_size
,
'bytes.'
)
extracted_dir_path
=
os
.
path
.
join
(
dest_directory
,
'cifar-10-batches-bin'
)
tarfile
.
open
(
filepath
,
'r:gz'
).
extractall
(
dest_directory
)
if
not
os
.
path
.
exists
(
extracted_dir_path
):
tarfile
.
open
(
filepath
,
'r:gz'
).
extractall
(
dest_directory
)
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