{"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/spatial-attentive-single-image-deraining-with","title":"Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset","arxiv_id":"1904.01538","date":"2019-04-02","proceeding":"CVPR 2019 6","authors":["Tianyu Wang","Xin Yang","Ke Xu","Shaozhe Chen","Qiang Zhang","Rynson Lau"],"abstract":"Removing rain streaks from a single image has been drawing considerable attention as rain streaks can severely degrade the image quality and affect the performance of existing outdoor vision tasks. While recent CNN-based derainers have reported promising performances, deraining remains an open problem for two reasons. First, existing synthesized rain datasets have only limited realism, in terms of modeling real rain characteristics such as rain shape, direction and intensity. Second, there are no public benchmarks for quantitative comparisons on real rain images, which makes the current evaluation less objective. The core challenge is that real world rain/clean image pairs cannot be captured at the same time. In this paper, we address the single image rain removal problem in two ways. First, we propose a semi-automatic method that incorporates temporal priors and human supervision to generate a high-quality clean image from each input sequence of real rain images. Using this method, we construct a large-scale dataset of $\\sim$$29.5K$ rain/rain-free image pairs that covers a wide range of natural rain scenes. Second, to better cover the stochastic distribution of real rain streaks, we propose a novel SPatial Attentive Network (SPANet) to remove rain streaks in a local-to-global manner. Extensive experiments demonstrate that our network performs favorably against the state-of-the-art deraining methods.","url_abs":"https://arxiv.org/abs/1904.01538v2","url_pdf":"https://arxiv.org/pdf/1904.01538v2.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":"spatial-attentive-single-image-deraining-with","repo_url":"https://github.com/chiukin/SPANet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"spatial-attentive-single-image-deraining-with","repo_url":"https://github.com/stevewongv/SPANet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"rain-removal","task_name":"Rain Removal"},{"task_slug":"single-image-deraining","task_name":"Single Image Deraining"},{"task_slug":"high","task_name":"Vocal Bursts Intensity Prediction"}],"methods":[],"datasets_introduced":[{"slug":"real-rain-dataset","name":"Real Rain Dataset","full_name":""}],"methods_introduced":[],"results":[{"leaderboard":"/sota/single-image-deraining-on-raincityscapes","task":"Single Image Deraining","dataset":"RainCityscapes","model":"SPANet","rank_in_archive_order":3,"of":6,"metrics":{"PSNR":"31.48","SSIM":"0.9656"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1904.01538","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1904.01538"}},"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/chiukin/SPANet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/stevewongv/SPANet","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":1,"ran_honours":2,"unverified":2},"by_repo_kind":{"listed":{"samples":5,"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":0,"samples":[{"code_sha256_prefix":"6978f1d410660f53","entry":"conv3x3","repo":"chiukin/SPANet","repo_kind":"listed","path":"SPANet.py","file_url":"https://github.com/chiukin/SPANet/blob/HEAD/SPANet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6978f1d410660f53"}},{"code_sha256_prefix":"6154e3744ece5728","entry":"create_window","repo":"chiukin/SPANet","repo_kind":"listed","path":"cal_ssim.py","file_url":"https://github.com/chiukin/SPANet/blob/HEAD/cal_ssim.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6154e3744ece5728"}},{"code_sha256_prefix":"c56b7ef16f309a45","entry":"gaussian","repo":"chiukin/SPANet","repo_kind":"listed","path":"cal_ssim.py","file_url":"https://github.com/chiukin/SPANet/blob/HEAD/cal_ssim.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c56b7ef16f309a45"}},{"code_sha256_prefix":"d92ce6cf29e0d5f7","entry":"conv1x1","repo":"chiukin/SPANet","repo_kind":"listed","path":"SPANet.py","file_url":"https://github.com/chiukin/SPANet/blob/HEAD/SPANet.py","link_basis":"harvester_set","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":"d92ce6cf29e0d5f7"}},{"code_sha256_prefix":"9151c793f90473f0","entry":"ssim","repo":"chiukin/SPANet","repo_kind":"listed","path":"cal_ssim.py","file_url":"https://github.com/chiukin/SPANet/blob/HEAD/cal_ssim.py","link_basis":"harvester_set","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":"9151c793f90473f0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}