{"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/freqmamba-viewing-mamba-from-a-frequency","title":"FreqMamba: Viewing Mamba from a Frequency Perspective for Image Deraining","arxiv_id":"2404.09476","date":"2024-04-15","proceeding":null,"authors":["Zou Zhen","Yu Hu","Zhao Feng"],"abstract":"Images corrupted by rain streaks often lose vital frequency information for perception, and image deraining aims to solve this issue which relies on global and local degradation modeling. Recent studies have witnessed the effectiveness and efficiency of Mamba for perceiving global and local information based on its exploiting local correlation among patches, however, rarely attempts have been explored to extend it with frequency analysis for image deraining, limiting its ability to perceive global degradation that is relevant to frequency modeling (e.g. Fourier transform). In this paper, we propose FreqMamba, an effective and efficient paradigm that leverages the complementary between Mamba and frequency analysis for image deraining. The core of our method lies in extending Mamba with frequency analysis from two perspectives: extending it with frequency-band for exploiting frequency correlation, and connecting it with Fourier transform for global degradation modeling. Specifically, FreqMamba introduces complementary triple interaction structures including spatial Mamba, frequency band Mamba, and Fourier global modeling. Frequency band Mamba decomposes the image into sub-bands of different frequencies to allow 2D scanning from the frequency dimension. Furthermore, leveraging Mamba's unique data-dependent properties, we use rainy images at different scales to provide degradation priors to the network, thereby facilitating efficient training. Extensive experiments show that our method outperforms state-of-the-art methods both visually and quantitatively.","url_abs":"https://arxiv.org/abs/2404.09476v2","url_pdf":"https://arxiv.org/pdf/2404.09476v2.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":"freqmamba-viewing-mamba-from-a-frequency","repo_url":"https://github.com/asleepytree/freqmamba","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"mamba","task_name":"Mamba"},{"task_slug":"rain-removal","task_name":"Rain Removal"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2404.09476","atlas_url":"https://app.syntology.ai/?focus=2404.09476","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.09476"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/asleepytree/freqmamba","reach":{"status":"ok"}}],"summary":{"ran":2,"ran_fixture":1},"by_repo_kind":{"official":{"samples":3,"ran":3,"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":3,"samples":[{"code_sha256_prefix":"16ebdd184fc553ff","entry":"conv2d_same_padding","repo":"asleepytree/freqmamba","repo_kind":"official","path":"models/same_conv2d.py","file_url":"https://github.com/asleepytree/freqmamba/blob/HEAD/models/same_conv2d.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"16ebdd184fc553ff"}},{"code_sha256_prefix":"b49681a0085cc6a1","entry":"dynamic_instantiation","repo":"asleepytree/freqmamba","repo_kind":"official","path":"models/image_restoration_model.py","file_url":"https://github.com/asleepytree/freqmamba/blob/HEAD/models/image_restoration_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b49681a0085cc6a1"}},{"code_sha256_prefix":"cd569444547de84f","entry":"get_position_from_periods","repo":"asleepytree/freqmamba","repo_kind":"official","path":"models/lr_scheduler_for_mamba.py","file_url":"https://github.com/asleepytree/freqmamba/blob/HEAD/models/lr_scheduler_for_mamba.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cd569444547de84f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}