{"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/mfdnet-multi-frequency-deflare-network-for","title":"MFDNet: Multi-Frequency Deflare Network for Efficient Nighttime Flare Removal","arxiv_id":"2406.18079","date":"2024-06-26","proceeding":null,"authors":["Yiguo Jiang","Xuhang Chen","Chi-Man Pun","Shuqiang Wang","Wei Feng"],"abstract":"When light is scattered or reflected accidentally in the lens, flare artifacts may appear in the captured photos, affecting the photos' visual quality. The main challenge in flare removal is to eliminate various flare artifacts while preserving the original content of the image. To address this challenge, we propose a lightweight Multi-Frequency Deflare Network (MFDNet) based on the Laplacian Pyramid. Our network decomposes the flare-corrupted image into low and high-frequency bands, effectively separating the illumination and content information in the image. The low-frequency part typically contains illumination information, while the high-frequency part contains detailed content information. So our MFDNet consists of two main modules: the Low-Frequency Flare Perception Module (LFFPM) to remove flare in the low-frequency part and the Hierarchical Fusion Reconstruction Module (HFRM) to reconstruct the flare-free image. Specifically, to perceive flare from a global perspective while retaining detailed information for image restoration, LFFPM utilizes Transformer to extract global information while utilizing a convolutional neural network to capture detailed local features. Then HFRM gradually fuses the outputs of LFFPM with the high-frequency component of the image through feature aggregation. Moreover, our MFDNet can reduce the computational cost by processing in multiple frequency bands instead of directly removing the flare on the input image. Experimental results demonstrate that our approach outperforms state-of-the-art methods in removing nighttime flare on real-world and synthetic images from the Flare7K dataset. Furthermore, the computational complexity of our model is remarkably low.","url_abs":"https://arxiv.org/abs/2406.18079v1","url_pdf":"https://arxiv.org/pdf/2406.18079v1.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":"mfdnet-multi-frequency-deflare-network-for","repo_url":"https://github.com/Jiang-maomao/flare-removal","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"flare-removal","task_name":"Flare Removal"},{"task_slug":"image-restoration","task_name":"Image Restoration"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"laplacian-pyramid","method_name":"Laplacian Pyramid"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.18079","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.18079"}},"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/Jiang-maomao/flare-removal","reach":{"status":"ok"}}],"summary":{"ran":4,"ran_fixture":2,"unverified":1},"by_repo_kind":{"official":{"samples":7,"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":7,"samples":[{"code_sha256_prefix":"f4f660080d6dd6da","entry":"adjust_gamma","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"utils/flare_util.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/utils/flare_util.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":"f4f660080d6dd6da"}},{"code_sha256_prefix":"f8d07e154c6d74a8","entry":"adjust_gamma_reverse","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"utils/flare_util.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/utils/flare_util.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":"f8d07e154c6d74a8"}},{"code_sha256_prefix":"92861369b0bd3bd3","entry":"compare_lpips","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"evaluate.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/evaluate.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":"92861369b0bd3bd3"}},{"code_sha256_prefix":"a6edbf1ca8e86daa","entry":"get_args_from_json","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"utils/flare_util.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/utils/flare_util.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":"a6edbf1ca8e86daa"}},{"code_sha256_prefix":"82a15cc1e46f7e4d","entry":"to_3d","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/models/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"82a15cc1e46f7e4d"}},{"code_sha256_prefix":"b20f2a5df739a59e","entry":"to_4d","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/models/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b20f2a5df739a59e"}},{"code_sha256_prefix":"1076d550021d2b1f","entry":"gauss_kernel","repo":"Jiang-maomao/flare-removal","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/Jiang-maomao/flare-removal/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1076d550021d2b1f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}