Coder Social home page Coder Social logo

zgr6010 / hsi_ssftt Goto Github PK

View Code? Open in Web Editor NEW
78.0 1.0 20.0 6.31 MB

L. Sun, G. Zhao, Y. Zheng, and Z. Wu. "Spectral–Spatial Feature Tokenization Transformer for Hyperspectral Image Classification," in IEEE TGRS, 2022.

Python 100.00%
hyperspectral-image-classification convolutional-neural-networks deep-learning remote-sensing transformer

hsi_ssftt's People

Contributors

zgr6010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hsi_ssftt's Issues

分类图

作者您好:
您文章中的分类图是去掉背景类的,所以就导致无法知道其余地方的分类情况,尤其是类别边界的情况,请问您可以对代码进行改进然后可以生成不出去背景类的分类图嘛

classification_maps

作者您好!在绘制图片的时候,遇到了如下问题,希望您有空能够帮忙解答一下!

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

Question

很棒的工作,请问论文中表格里的实验结果是几次实验取平均得到的吗?我在文章中没有看到相关说明。

SSFTTnet.py下SSFTTnet类下的forward

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的数据结果,请问您能否将其余数据集测试的代码上传供后人参考呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.