{"id":26687988,"url":"https://github.com/mohammadshaad/mambahsi","last_synced_at":"2025-03-26T13:17:18.926Z","repository":{"id":282611936,"uuid":"949128470","full_name":"mohammadshaad/MambaHSI","owner":"mohammadshaad","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-15T19:03:20.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T19:34:54.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohammadshaad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-15T18:35:52.000Z","updated_at":"2025-03-15T19:03:24.000Z","dependencies_parsed_at":"2025-03-15T19:45:02.378Z","dependency_job_id":null,"html_url":"https://github.com/mohammadshaad/MambaHSI","commit_stats":null,"previous_names":["mohammadshaad/mambahsi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FMambaHSI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FMambaHSI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FMambaHSI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadshaad%2FMambaHSI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadshaad","download_url":"https://codeload.github.com/mohammadshaad/MambaHSI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659048,"owners_count":20651526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-26T13:17:18.429Z","updated_at":"2025-03-26T13:17:18.917Z","avatar_url":"https://github.com/mohammadshaad.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MambaHSI: Spatial-Spectral Mamba for Hyperspectral Image Classification\n\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href='https://ieeexplore.ieee.org/abstract/document/10604894'\u003e\u003cimg src='https://img.shields.io/badge/TGRS-Paper-blue'\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n\n## 📝 Introduction\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./images/Motivation.png\" alt=\"Motivation\" width=\"55%\"\u003e\n\u003c/div\u003e\n\n* To our best knowledge, the MambaHSI is **the first image-level hyperspectral image classification model based on SSM**, which can simultaneously model long-range interaction of whole image and integrate spatial and spectral image information.\n* MambaHSI demonstrates **the great potential of Mamba to be the next-generation backbone for hyperspectral image models**.\n\n## 🚀 Getting Started\n\n### Installation\n\n```sh\nconda create -n MambaHSI_env python=3.9\nconda activate MambaHSI_env\nconda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia\npip install packaging==24.0\npip install triton==2.2.0\npip install mamba-ssm==1.2.0\npip install spectral\npip install scikit-learn==1.4.1.post1\npip install calflops==0.3.2\n```\n\n### Data Preparation\nThe dataset can download [Google Drive](https://drive.google.com/file/d/1d-fzMXYhpwis9o_x8hPz4uHx0z5tg7LD/view?usp=sharing) and [BaiduNetdisk](https://pan.baidu.com/s/1SqzP-Y6mbuR1PRz9uGGp1Q?pwd=8ne2).\n\n```\ndata\n└── UP/\n    ├── PaviaU.mat \n    └── PaviaU_gt.mat\n    ...\n└── Houston/\n    ├── Houston.mat \n    └── Houston_GT.mat\n    ...\n└── HanChuan/\n    ├── WHU_Hi_HanChuan.mat \n    └── WHU_Hi_HanChuan_gt.mat\n    ...\n└── HongHu/  \n    ├── WHU_Hi_HongHu.npy\n    └── WHU_Hi_HongHu_gt.npy\n```\n\n\n\n**Training:**\n```\npython train_MambaHSI.py --dataset_index 0\npython train_MambaHSI.py --dataset_index 1\npython train_MambaHSI.py --dataset_index 2\npython train_MambaHSI.py --dataset_index 3\n```\n\n## 🎖️ Main Results\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cfont size=\"4\"\u003e\nPavia University Results\n\u003c/font\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/PaviaU_results.png\" alt=\"PaviaU\" width=\"100%\"\u003e\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cfont size=\"4\"\u003e\nHouston Results\n\u003c/font\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/Houston_results.png\" alt=\"Houston\" width=\"100%\"\u003e\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cfont size=\"4\"\u003e\nHanChuan Results\n\u003c/font\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/HanChuan_results.png\" alt=\"HanChuan\" width=\"100%\"\u003e\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cfont size=\"4\"\u003e\nHongHu Results\n\u003c/font\u003e\u003c/summary\u003e\n\u003cimg src=\"./images/HongHu_results.png\" alt=\"HongHu\" width=\"100%\"\u003e\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadshaad%2Fmambahsi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadshaad%2Fmambahsi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadshaad%2Fmambahsi/lists"}