{"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/restoring-vision-in-adverse-weather","title":"Restoring Vision in Adverse Weather Conditions with Patch-Based Denoising Diffusion Models","arxiv_id":"2207.14626","date":"2022-07-29","proceeding":null,"authors":["Ozan Özdenizci","Robert Legenstein"],"abstract":"Image restoration under adverse weather conditions has been of significant interest for various computer vision applications. Recent successful methods rely on the current progress in deep neural network architectural designs (e.g., with vision transformers). Motivated by the recent progress achieved with state-of-the-art conditional generative models, we present a novel patch-based image restoration algorithm based on denoising diffusion probabilistic models. Our patch-based diffusion modeling approach enables size-agnostic image restoration by using a guided denoising process with smoothed noise estimates across overlapping patches during inference. We empirically evaluate our model on benchmark datasets for image desnowing, combined deraining and dehazing, and raindrop removal. We demonstrate our approach to achieve state-of-the-art performances on both weather-specific and multi-weather image restoration, and experimentally show strong generalization to real-world test images.","url_abs":"https://arxiv.org/abs/2207.14626v2","url_pdf":"https://arxiv.org/pdf/2207.14626v2.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":"restoring-vision-in-adverse-weather","repo_url":"https://github.com/igitugraz/weatherdiffusion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"image-restoration","task_name":"Image Restoration"},{"task_slug":"rain-removal","task_name":"Rain Removal"},{"task_slug":"raindrop-removal","task_name":"Raindrop Removal"},{"task_slug":"single-image-deraining","task_name":"Single Image Deraining"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-restoration-on-cdd-11","task":"Image Restoration","dataset":"CDD-11","model":"WeatherDiff","rank_in_archive_order":14,"of":14,"metrics":{"Average PSNR (dB)":"22.49","SSIM":"0.7985"},"uses_additional_data":false},{"leaderboard":"/sota/rain-removal-on-nighrain","task":"Rain Removal","dataset":"Nightrain","model":"WeatherDiff","rank_in_archive_order":4,"of":4,"metrics":{"PSNR":"20.98"},"uses_additional_data":false},{"leaderboard":"/sota/single-image-deraining-on-raindrop","task":"Single Image Deraining","dataset":"Raindrop","model":"RainDropDiff128","rank_in_archive_order":3,"of":3,"metrics":{"PSNR":"32.43","SSIM":"0.933"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2207.14626","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.14626"}},"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/igitugraz/weatherdiffusion","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":3,"ran_fixture":2,"ran":3,"ran_honours":1,"ran_violates":1,"unverified":1},"by_repo_kind":{"official":{"samples":11,"ran":10,"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":"c3a6b977022957cb","entry":"Normalize","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"models/unet.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/models/unet.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c3a6b977022957cb"}},{"code_sha256_prefix":"7f3a54e16f28ef7e","entry":"calculate_psnr","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"utils/metrics.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/utils/metrics.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":"7f3a54e16f28ef7e"}},{"code_sha256_prefix":"1711055882a8cb05","entry":"data_transform","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"models/ddm.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/models/ddm.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1711055882a8cb05"}},{"code_sha256_prefix":"bd1f17e427bf51a5","entry":"dict2namespace","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"eval_diffusion.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/eval_diffusion.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bd1f17e427bf51a5"}},{"code_sha256_prefix":"ca0cea1ca1eeec89","entry":"get_beta_schedule","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"models/ddm.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/models/ddm.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ca0cea1ca1eeec89"}},{"code_sha256_prefix":"cb49209c125de1b4","entry":"get_timestep_embedding","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"models/unet.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/models/unet.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":"cb49209c125de1b4"}},{"code_sha256_prefix":"444601dceca73c5e","entry":"inverse_data_transform","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"models/ddm.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/models/ddm.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"444601dceca73c5e"}},{"code_sha256_prefix":"60c85826a345d8ed","entry":"load_checkpoint","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"utils/logging.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/utils/logging.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":"60c85826a345d8ed"}},{"code_sha256_prefix":"3137073275f8c21a","entry":"nonlinearity","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"models/unet.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/models/unet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3137073275f8c21a"}},{"code_sha256_prefix":"2746a91df51e486c","entry":"to_y_channel","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"utils/metrics.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/utils/metrics.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2746a91df51e486c"}},{"code_sha256_prefix":"5d0f7e6eeb30a620","entry":"calculate_ssim","repo":"igitugraz/weatherdiffusion","repo_kind":"official","path":"utils/metrics.py","file_url":"https://github.com/igitugraz/weatherdiffusion/blob/HEAD/utils/metrics.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":"5d0f7e6eeb30a620"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}