We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 080339e + 0132b6b commit 0e0e6beCopy full SHA for 0e0e6be
extra_keras_datasets/stl10.py
@@ -47,13 +47,17 @@ def load_data(path="stl10_matlab.tar.gz"):
47
Tuple of Numpy arrays: `(input_train, target_train),
48
(input_test, target_test)`.
49
"""
50
+ # Set local .tar.gz path and delete if already available
51
+ local_targz_path = "./stl-10"
52
+ shutil.rmtree(local_targz_path, ignore_errors=True)
53
+
54
+ # Download STL-10 dataset
55
path = get_file(
56
path, origin=("http://ai.stanford.edu/~acoates/"
57
"stl10/stl10_matlab.tar.gz")
58
)
59
60
# Temporarily extract .tar.gz in local path
- local_targz_path = "./stl-10"
61
shutil.unpack_archive(path, local_targz_path)
62
63
# Load data from Matlab file
0 commit comments