Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read HSI data #1

Open
aldiak opened this issue Mar 14, 2022 · 4 comments
Open

Read HSI data #1

aldiak opened this issue Mar 14, 2022 · 4 comments

Comments

@aldiak
Copy link

aldiak commented Mar 14, 2022

Hello, I am using a tensorflow-gpu == 1.13.1 and trying to read the .mat file, but it's throwing this error:

Traceback (most recent call last):
File "run.py", line 225, in
X, y = loadData(dataset)
File "run.py", line 50, in loadData
mat_data = sio.loadmat(data_path + 'PaviaU.mat')
File "C:\Users\Alou\anaconda3\envs\paper\lib\site-packages\scipy\io\matlab\mio.py", line 226, in loadmat
matfile_dict = MR.get_variables(variable_names)
File "C:\Users\Alou\anaconda3\envs\paper\lib\site-packages\scipy\io\matlab\mio5.py", line 332, in get_variables
res = self.read_var_array(hdr, process)
File "C:\Users\Alou\anaconda3\envs\paper\lib\site-packages\scipy\io\matlab\mio5.py", line 292, in read_var_array
return self._matrix_reader.array_from_header(header, process)
File "mio5_utils.pyx", line 671, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header
File "mio5_utils.pyx", line 701, in scipy.io.matlab.mio5_utils.VarReader5.array_from_header
File "mio5_utils.pyx", line 775, in scipy.io.matlab.mio5_utils.VarReader5.read_real_complex
File "mio5_utils.pyx", line 448, in scipy.io.matlab.mio5_utils.VarReader5.read_numeric
File "mio5_utils.pyx", line 353, in scipy.io.matlab.mio5_utils.VarReader5.read_element
File "streams.pyx", line 174, in scipy.io.matlab.streams.ZlibInputStream.read_string
File "streams.pyx", line 150, in scipy.io.matlab.streams.ZlibInputStream.read_into
File "streams.pyx", line 137, in scipy.io.matlab.streams.ZlibInputStream._fill_buffer
zlib.error: Error -3 while decompressing data: invalid block type

Please, I need some help. Thanks

@AnkurDeria
Copy link
Collaborator

AnkurDeria commented Mar 15, 2022 via email

@AnkurDeria
Copy link
Collaborator

AnkurDeria commented Mar 15, 2022 via email

@aldiak
Copy link
Author

aldiak commented Mar 15, 2022 via email

@aldiak
Copy link
Author

aldiak commented Mar 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants