-
Notifications
You must be signed in to change notification settings - Fork 0
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
AssertionError #3
Comments
The size of WHU-Hi-LongKou dataset was 550×400×270 (h×w×Bands), and 550×400=220,000, 550×400×270=59,400,000. The shape of gt should be (550×400) and reshape to (220,000,). Maybe you treat the HSI data as gt? |
print(gt_raw.shape) #(550, 400, 270)
But as my experiment show, the shape of gt is (550,400,270) too.
The file path is :envi_gt_path : /root/autodl-tmp/HSIMAE/HSIMAE/Finetuning dataset/Envi_standard_format/WHU-Hi-LongKou/WHU-Hi-LongKou_gt.hdr
你好朋友,我在自己做实验检查gt的时候,路径如上所示,它的数组形状也是(550,400,270),所以我不太懂
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年12月2日(星期一) 下午3:28
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [Ryan21wy/HSIMAE] AssertionError (Issue #3)
The size of WHU-Hi-LongKou dataset was 550×400×270 (h×w×Bands), and 550×400=220,000, 550×400×270=59,400,000. The shape of gt should be (550×400) and reshape to (220,000,). Maybe you treat the HSI data as gt?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
那可能是Envi格式的问题,可以试试Matlab格式,在这里下载 http://rsidea.whu.edu.cn/resource_WHUHi_sharing.htm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
data_path = "/root/autodl-tmp/HSIMAE/HSIMAE/Finetuning dataset/Envi_standard_format/WHU-Hi-LongKou/WHU-Hi-LongKou" # numpy array, [h, w, Bands]
gt_path = "/root/autodl-tmp/HSIMAE/HSIMAE/Finetuning dataset/Envi_standard_format/WHU-Hi-LongKou/WHU-Hi-LongKou" # numpy array, [h, w]
When I try to use WHU-Hi-LongKou dataset, "assert len(data_cubes) == gt.shape[0]" can not pass.
Becasues data_cubes.shape is (220000, 9, 9, 32), but gt.shape is (59400000,)
Please tell me what should I do, thank you very much.
The text was updated successfully, but these errors were encountered: