{"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/deflow-learning-complex-image-degradations","title":"DeFlow: Learning Complex Image Degradations from Unpaired Data with Conditional Flows","arxiv_id":"2101.05796","date":"2021-01-14","proceeding":"CVPR 2021 1","authors":["Valentin Wolf","Andreas Lugmayr","Martin Danelljan","Luc van Gool","Radu Timofte"],"abstract":"The difficulty of obtaining paired data remains a major bottleneck for learning image restoration and enhancement models for real-world applications. Current strategies aim to synthesize realistic training data by modeling noise and degradations that appear in real-world settings. We propose DeFlow, a method for learning stochastic image degradations from unpaired data. Our approach is based on a novel unpaired learning formulation for conditional normalizing flows. We model the degradation process in the latent space of a shared flow encoder-decoder network. This allows us to learn the conditional distribution of a noisy image given the clean input by solely minimizing the negative log-likelihood of the marginal distributions. We validate our DeFlow formulation on the task of joint image restoration and super-resolution. The models trained with the synthetic data generated by DeFlow outperform previous learnable approaches on three recent datasets. Code and trained models are available at: https://github.com/volflow/DeFlow","url_abs":"https://arxiv.org/abs/2101.05796v2","url_pdf":"https://arxiv.org/pdf/2101.05796v2.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":"deflow-learning-complex-image-degradations","repo_url":"https://github.com/volflow/DeFlow","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"deflow-learning-complex-image-degradations","repo_url":"https://github.com/hnt4499/DeFlow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"image-restoration","task_name":"Image Restoration"},{"task_slug":"super-resolution","task_name":"Super-Resolution"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2101.05796","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2101.05796"}},"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/volflow/DeFlow","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hnt4499/DeFlow","reach":null}],"summary":{"ran":1,"ran_violates":1,"ran_honours":1,"unverified":4},"by_repo_kind":{"listed":{"samples":7,"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":7,"samples":[{"code_sha256_prefix":"54e3df7d462d64f5","entry":"BentIdentPar","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"54e3df7d462d64f5"}},{"code_sha256_prefix":"0bebbc75f9a3e43e","entry":"getConditional","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0bebbc75f9a3e43e"}},{"code_sha256_prefix":"6f1ea763f40dfc94","entry":"opt_get","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6f1ea763f40dfc94"}},{"code_sha256_prefix":"7b82eb3e710b6c28","entry":"FlowNet","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.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":"7b82eb3e710b6c28"}},{"code_sha256_prefix":"c023eb4d32d51843","entry":"FlowStep","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.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":"c023eb4d32d51843"}},{"code_sha256_prefix":"68d4f16e85ca2c83","entry":"Glow","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.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":"68d4f16e85ca2c83"}},{"code_sha256_prefix":"fccf3dcb1b386875","entry":"f","repo":"hnt4499/DeFlow","repo_kind":"listed","path":"codes/models/modules/glow_arch.py","file_url":"https://github.com/hnt4499/DeFlow/blob/HEAD/codes/models/modules/glow_arch.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":"fccf3dcb1b386875"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}