swalpa / G2C-Conv3D-HSI

PyTorch implementation of the paper - Revisiting Deep Hyperspectral Feature Extraction Networks via Gradient Centralized Convolution
GNU General Public License v3.0
31 stars 0 forks source link

Read HSI data #1

Open aldiak opened 2 years ago

aldiak commented 2 years ago

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 commented 2 years ago

Hello, try to update your scipy package and try this again.

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Mar 2022 at 00:17, ALOU DIAKITE @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/swalpa/G2C-Conv3D-HSI/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL2ACJ2E4FOCTNEOKHFWJ3U76CVNANCNFSM5QWNROIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

AnkurDeria commented 2 years ago

It would be helpful if you could show me the script.

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Mar 2022 at 10:38, Ankur Deria @.***> wrote:

Hello, try to update your scipy package and try this again.

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#m_-460989154685232177_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Mar 2022 at 00:17, ALOU DIAKITE @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/swalpa/G2C-Conv3D-HSI/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL2ACJ2E4FOCTNEOKHFWJ3U76CVNANCNFSM5QWNROIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

aldiak commented 2 years ago

Alright, I will try out. Thanks

On Tue, Mar 15, 2022 at 1:09 PM Ankur Deria @.***> wrote:

Hello, try to update your scipy package and try this again.

< http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail

Virus-free. www.avg.com < http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Mar 2022 at 00:17, ALOU DIAKITE @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/swalpa/G2C-Conv3D-HSI/issues/1, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOL2ACJ2E4FOCTNEOKHFWJ3U76CVNANCNFSM5QWNROIA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/swalpa/G2C-Conv3D-HSI/issues/1#issuecomment-1067569593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOVODUVMBED4KU5UK5HGMTVAALPVANCNFSM5QWNROIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

aldiak commented 2 years ago

Here are the picture of the script and the error message

On Tue, Mar 15, 2022 at 2:09 PM Ankur Deria @.***> wrote:

It would be helpful if you could show me the script.

< http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail

Virus-free. www.avg.com < http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Mar 2022 at 10:38, Ankur Deria @.***> wrote:

Hello, try to update your scipy package and try this again.

< http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com < http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail

<#m_-460989154685232177_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Mar 2022 at 00:17, ALOU DIAKITE @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/swalpa/G2C-Conv3D-HSI/issues/1, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOL2ACJ2E4FOCTNEOKHFWJ3U76CVNANCNFSM5QWNROIA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/swalpa/G2C-Conv3D-HSI/issues/1#issuecomment-1067599773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOVODQDI73PWGLDBFXLB73VAASRBANCNFSM5QWNROIA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>