{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/prompthsi-universal-hyperspectral-image","title":"PromptHSI: Universal Hyperspectral Image Restoration with Vision-Language Modulated Frequency Adaptation","arxiv_id":"2411.15922","date":"2024-11-24","proceeding":null,"authors":["Chia-Ming Lee","Ching-Heng Cheng","Yu-Fan Lin","Yi-Ching Cheng","Wo-Ting Liao","Fu-En Yang","Yu-Chiang Frank Wang","Chih-Chung Hsu"],"abstract":"Recent advances in All-in-One (AiO) RGB image restoration have demonstrated the effectiveness of prompt learning in handling multiple degradations within a single model. However, extending these approaches to hyperspectral image (HSI) restoration is challenging due to the domain gap between RGB and HSI features, information loss in visual prompts under severe composite degradations, and difficulties in capturing HSI-specific degradation patterns via text prompts. In this paper, we propose PromptHSI, the first universal AiO HSI restoration framework that addresses these challenges. By incorporating frequency-aware feature modulation, which utilizes frequency analysis to narrow down the restoration search space and employing vision-language model (VLM)-guided prompt learning, our approach decomposes text prompts into intensity and bias controllers that effectively guide the restoration process while mitigating domain discrepancies. Extensive experiments demonstrate that our unified architecture excels at both fine-grained recovery and global information restoration across diverse degradation scenarios, highlighting its significant potential for practical remote sensing applications. The source code is available at https://github.com/chingheng0808/PromptHSI.","url_abs":"https://arxiv.org/abs/2411.15922v3","url_pdf":"https://arxiv.org/pdf/2411.15922v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"prompthsi-universal-hyperspectral-image","repo_url":"https://github.com/chingheng0808/PromptHSI","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-restoration","task_name":"Image Restoration"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"prompt-learning","task_name":"Prompt Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2411.15922","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.15922"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/chingheng0808/PromptHSI","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":4,"ran_violates":1,"ran_draft_wrong":1,"unverified":11},"by_repo_kind":{"official":{"samples":17,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"52d96aa31ed74a56","entry":"drop_path","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/DRCT.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/DRCT.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"52d96aa31ed74a56"}},{"code_sha256_prefix":"7c508037b40522af","entry":"str2bool","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"options.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/options.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7c508037b40522af"}},{"code_sha256_prefix":"82a15cc1e46f7e4d","entry":"to_3d","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/modules.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/modules.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"82a15cc1e46f7e4d"}},{"code_sha256_prefix":"b20f2a5df739a59e","entry":"to_4d","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/modules.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/modules.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b20f2a5df739a59e"}},{"code_sha256_prefix":"f9fd6241d935f07b","entry":"window_partition","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/DRCT.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/DRCT.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9fd6241d935f07b"}},{"code_sha256_prefix":"fb32094c6dbece71","entry":"window_reverse","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/DRCT.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/DRCT.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fb32094c6dbece71"}},{"code_sha256_prefix":"19e03fefbb0c812e","entry":"ergas","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/metrics.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"19e03fefbb0c812e"}},{"code_sha256_prefix":"db1eb6c74daeb263","entry":"findClose","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"DegDataGeneration/degHSI_generation_latest.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/DegDataGeneration/degHSI_generation_latest.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db1eb6c74daeb263"}},{"code_sha256_prefix":"dcabe73b3f94d068","entry":"interpolate_channels","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/dataset.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dcabe73b3f94d068"}},{"code_sha256_prefix":"ac22b593479bb02b","entry":"interpolate_rows","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/dataset.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac22b593479bb02b"}},{"code_sha256_prefix":"d8e229783e47578d","entry":"mypad","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/lossfunc.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/lossfunc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8e229783e47578d"}},{"code_sha256_prefix":"2a3353478a92ce07","entry":"normGray","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"DegDataGeneration/degHSI_generation_latest.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/DegDataGeneration/degHSI_generation_latest.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a3353478a92ce07"}},{"code_sha256_prefix":"ac7287fac905daad","entry":"normHSI","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"DegDataGeneration/degHSI_generation_latest.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/DegDataGeneration/degHSI_generation_latest.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac7287fac905daad"}},{"code_sha256_prefix":"a1070467a2c29db6","entry":"prep_filt_afb2d","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/lossfunc.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/lossfunc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a1070467a2c29db6"}},{"code_sha256_prefix":"5b0fc298fac4aa73","entry":"psnr","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/metrics.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b0fc298fac4aa73"}},{"code_sha256_prefix":"c18931526ac3006c","entry":"reflect","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/lossfunc.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/lossfunc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c18931526ac3006c"}},{"code_sha256_prefix":"0809e1791d5239c3","entry":"sam","repo":"chingheng0808/PromptHSI","repo_kind":"official","path":"utils/metrics.py","file_url":"https://github.com/chingheng0808/PromptHSI/blob/HEAD/utils/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0809e1791d5239c3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}