The code does not execute beyond the data provider for SVHN. It works well for both C10 and C100.
Log File:
Prepare training data...
Traceback (most recent call last):
File "run_nn_pruning.py", line 154, in
data_provider = get_data_provider_by_name(args.dataset, train_params)
File "/home/gkrish19/TCAD/DenseNet/data_providers/utils.py", line 17, in get_data_provider_by_name
return SVHNDataProvider(**train_params)
File "/home/gkrish19/TCAD/DenseNet/data_providers/svhn.py", line 85, in init
images, labels = self.get_images_and_labels(part, one_hot)
File "/home/gkrish19/TCAD/DenseNet/data_providers/svhn.py", line 117, in get_images_and_labels
data = scipy.io.loadmat(filename)
File "/home/gkrish19/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio.py", line 142, in loadmat
matfile_dict = MR.get_variables(variable_names)
File "/home/gkrish19/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio5.py", line 292, in get_variables
res = self.read_var_array(hdr, process)
File "/home/gkrish19/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio5.py", line 252, in read_var_array
return self._matrix_reader.array_from_header(header, process)
File "mio5_utils.pyx", line 675, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header
File "mio5_utils.pyx", line 705, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header
File "mio5_utils.pyx", line 778, in scipy.io.matlab.mio5_utils.VarReader5.read_real_complex
File "mio5_utils.pyx", line 450, in scipy.io.matlab.mio5_utils.VarReader5.read_numeric
File "mio5_utils.pyx", line 355, in scipy.io.matlab.mio5_utils.VarReader5.read_element
File "streams.pyx", line 195, in scipy.io.matlab.streams.ZlibInputStream.read_string
File "streams.pyx", line 188, in scipy.io.matlab.streams.ZlibInputStream.read_into
OSError: could not read bytes
The code does not execute beyond the data provider for SVHN. It works well for both C10 and C100. Log File: Prepare training data... Traceback (most recent call last): File "run_nn_pruning.py", line 154, in
data_provider = get_data_provider_by_name(args.dataset, train_params)
File "/home/gkrish19/TCAD/DenseNet/data_providers/utils.py", line 17, in get_data_provider_by_name
return SVHNDataProvider(**train_params)
File "/home/gkrish19/TCAD/DenseNet/data_providers/svhn.py", line 85, in init
images, labels = self.get_images_and_labels(part, one_hot)
File "/home/gkrish19/TCAD/DenseNet/data_providers/svhn.py", line 117, in get_images_and_labels
data = scipy.io.loadmat(filename)
File "/home/gkrish19/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio.py", line 142, in loadmat
matfile_dict = MR.get_variables(variable_names)
File "/home/gkrish19/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio5.py", line 292, in get_variables
res = self.read_var_array(hdr, process)
File "/home/gkrish19/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio5.py", line 252, in read_var_array
return self._matrix_reader.array_from_header(header, process)
File "mio5_utils.pyx", line 675, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header
File "mio5_utils.pyx", line 705, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header
File "mio5_utils.pyx", line 778, in scipy.io.matlab.mio5_utils.VarReader5.read_real_complex
File "mio5_utils.pyx", line 450, in scipy.io.matlab.mio5_utils.VarReader5.read_numeric
File "mio5_utils.pyx", line 355, in scipy.io.matlab.mio5_utils.VarReader5.read_element
File "streams.pyx", line 195, in scipy.io.matlab.streams.ZlibInputStream.read_string
File "streams.pyx", line 188, in scipy.io.matlab.streams.ZlibInputStream.read_into
OSError: could not read bytes