zgr6010 / hsi_ssftt Goto Github PK
View Code? Open in Web Editor NEWL. Sun, G. Zhao, Y. Zheng, and Z. Wu. "Spectral–Spatial Feature Tokenization Transformer for Hyperspectral Image Classification," in IEEE TGRS, 2022.
L. Sun, G. Zhao, Y. Zheng, and Z. Wu. "Spectral–Spatial Feature Tokenization Transformer for Hyperspectral Image Classification," in IEEE TGRS, 2022.
作者您好:
您文章中的分类图是去掉背景类的,所以就导致无法知道其余地方的分类情况,尤其是类别边界的情况,请问您可以对代码进行改进然后可以生成不出去背景类的分类图嘛
IndexError Traceback (most recent call last)
/tmp/ipykernel_25/2069759544.py in
611 print(y.shape[0])
612 print(y.shape[1])
--> 613 get_cls_map(net, device, all_data_loader, y_all)
/tmp/ipykernel_25/2069759544.py in get_cls_map(net, device, all_data_loader, y)
113
114 y_pred, y_new = test(device, net, all_data_loader)
--> 115 cls_labels = get_classification_map(y_pred, y)
116 x = np.ravel(cls_labels)
117 gt = y.flatten()
/tmp/ipykernel_25/2069759544.py in get_classification_map(y_pred, y)
21
22 height = y.shape[0]
---> 23 width = y.shape[1]
24 k = 0
25 cls_labels = np.zeros((height, width))
IndexError: tuple index out of range
tuple index out of range
很棒的工作,请问论文中表格里的实验结果是几次实验取平均得到的吗?我在文章中没有看到相关说明。
SSFTTnet.py下SSFTTnet类下的forward:
“wa = rearrange(self.token_wA, 'b h w -> b w h') # Transpose
A = torch.einsum('bij,bjk->bik', x, wa)”
wa是torch.Size([1, 64, 4])
x是torch.Size([64, 81, 64])
这块bij bjk里面的b不一样
您好,非常感谢您的研究,在已经提交的代码中仅测试了Indian_pines_corrected的数据结果,请问您能否将其余数据集测试的代码上传供后人参考呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.