{"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/toward-sufficient-spatial-frequency","title":"Toward Sufficient Spatial-Frequency Interaction for Gradient-aware Underwater Image Enhancement","arxiv_id":"2309.04089","date":"2023-09-08","proceeding":null,"authors":["Chen Zhao","Weiling Cai","Chenyu Dong","Ziqi Zeng"],"abstract":"Underwater images suffer from complex and diverse degradation, which inevitably affects the performance of underwater visual tasks. However, most existing learning-based Underwater image enhancement (UIE) methods mainly restore such degradations in the spatial domain, and rarely pay attention to the fourier frequency information. In this paper, we develop a novel UIE framework based on spatial-frequency interaction and gradient maps, namely SFGNet, which consists of two stages. Specifically, in the first stage, we propose a dense spatial-frequency fusion network (DSFFNet), mainly including our designed dense fourier fusion block and dense spatial fusion block, achieving sufficient spatial-frequency interaction by cross connections between these two blocks. In the second stage, we propose a gradient-aware corrector (GAC) to further enhance perceptual details and geometric structures of images by gradient map. Experimental results on two real-world underwater image datasets show that our approach can successfully enhance underwater images, and achieves competitive performance in visual quality improvement. The code is available at https://github.com/zhihefang/SFGNet.","url_abs":"https://arxiv.org/abs/2309.04089v2","url_pdf":"https://arxiv.org/pdf/2309.04089v2.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":"toward-sufficient-spatial-frequency","repo_url":"https://github.com/zhihefang/SFGNet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"image-enhancement","task_name":"Image Enhancement"},{"task_slug":"uie","task_name":"UIE"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2309.04089","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.04089"}},"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/zhihefang/SFGNet","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"ran":6},"by_repo_kind":{"official":{"samples":7,"ran":7,"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":7,"samples":[{"code_sha256_prefix":"7e1f7c581619b800","entry":"default_conv","repo":"zhihefang/SFGNet","repo_kind":"official","path":"SFGnet.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/SFGnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e1f7c581619b800"}},{"code_sha256_prefix":"70d99a62612b747c","entry":"gen_att","repo":"zhihefang/SFGNet","repo_kind":"official","path":"SFGnet.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/SFGnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"70d99a62612b747c"}},{"code_sha256_prefix":"e731b9c5e327d08b","entry":"is_image_file","repo":"zhihefang/SFGNet","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/dataset.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":"e731b9c5e327d08b"}},{"code_sha256_prefix":"27ebc73345cd00a0","entry":"load_img","repo":"zhihefang/SFGNet","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/dataset.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":"27ebc73345cd00a0"}},{"code_sha256_prefix":"5dfad570b582b1ea","entry":"normalize","repo":"zhihefang/SFGNet","repo_kind":"official","path":"utils.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5dfad570b582b1ea"}},{"code_sha256_prefix":"b1c1acd3c89a39f3","entry":"quantize","repo":"zhihefang/SFGNet","repo_kind":"official","path":"utils.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b1c1acd3c89a39f3"}},{"code_sha256_prefix":"25678766a66c3ac4","entry":"rescale_img","repo":"zhihefang/SFGNet","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/zhihefang/SFGNet/blob/HEAD/dataset.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":"25678766a66c3ac4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}