lucas2606-rs / HybridSN

This is a Keras implementation of paper:HybridSN: Exploring 3D-2D CNN Feature Hierarchy for Hyperspectral Image Classification
5 stars 0 forks source link

Replace dataset with‘ keyerror’ problem #1

Open LWX92 opened 2 years ago

LWX92 commented 2 years ago

Thank you very much for sharing,When I want to change the dataset, it appears‘key error’,Can you tell me how to solve this problem? image

lucas2606-rs commented 2 years ago

have you downloaded the pavia hsi dataset yet?

lucas2606-rs commented 2 years ago

image you should download the corresponding HSI dataset from this website and arrange them in a folder like this https://www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes#Salinas

LWX92 commented 2 years ago

I download it ,

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月29日(星期三) 下午4:43 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ZhengPuL/HybridSN] Replace dataset with‘ keyerror’ problem (Issue #1)

have you downloaded the pavia hsi dataset yet?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

lucas2606-rs commented 2 years ago

you can use this commend

from scipy.io import loadmat x = loadmat('your address for hsi dataset') print(x.keys())

to check the keys in your loaded mat file

LWX92 commented 2 years ago

Thank you very much ,i will try it

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月29日(星期三) 下午4:48 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ZhengPuL/HybridSN] Replace dataset with‘ keyerror’ problem (Issue #1)

you can use this commend

from scipy.io import loadmat x = loadmat('your address for hsi dataset') print(x.keys())

to check the keys in your loaded mat file

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

LWX92 commented 2 years ago

thank you very much again,i solve this problems ,the key of PU dataset is paviaU,not pavia.

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月29日(星期三) 下午4:48 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ZhengPuL/HybridSN] Replace dataset with‘ keyerror’ problem (Issue #1)

you can use this commend

from scipy.io import loadmat x = loadmat('your address for hsi dataset') print(x.keys())

to check the keys in your loaded mat file

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>