Commit 0b2c5ba2 authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #1112 from zym1010/issue1083

fix #1083
parents d3c8cf9e dac6755b
...@@ -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)
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