{"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/patched-denoising-diffusion-models-for-high","title":"Patched Denoising Diffusion Models For High-Resolution Image Synthesis","arxiv_id":"2308.01316","date":"2023-08-02","proceeding":null,"authors":["Zheng Ding","Mengqi Zhang","Jiajun Wu","Zhuowen Tu"],"abstract":"We propose an effective denoising diffusion model for generating high-resolution images (e.g., 1024$\\times$512), trained on small-size image patches (e.g., 64$\\times$64). We name our algorithm Patch-DM, in which a new feature collage strategy is designed to avoid the boundary artifact when synthesizing large-size images. Feature collage systematically crops and combines partial features of the neighboring patches to predict the features of a shifted image patch, allowing the seamless generation of the entire image due to the overlap in the patch feature space. Patch-DM produces high-quality image synthesis results on our newly collected dataset of nature images (1024$\\times$512), as well as on standard benchmarks of smaller sizes (256$\\times$256), including LSUN-Bedroom, LSUN-Church, and FFHQ. We compare our method with previous patch-based generation methods and achieve state-of-the-art FID scores on all four datasets. Further, Patch-DM also reduces memory complexity compared to the classic diffusion models.","url_abs":"https://arxiv.org/abs/2308.01316v1","url_pdf":"https://arxiv.org/pdf/2308.01316v1.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":"patched-denoising-diffusion-models-for-high","repo_url":"https://github.com/mlpc-ucsd/patch-dm","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2308.01316","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.01316"}},"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/mlpc-ucsd/patch-dm","reach":{"status":"ok"}}],"summary":{"ran":4,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":9,"ran":5,"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":9,"samples":[{"code_sha256_prefix":"f665a07118db6408","entry":"apply_conditions","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"model/blocks.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/model/blocks.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":"f665a07118db6408"}},{"code_sha256_prefix":"89da1a2395b0d0d9","entry":"resize_and_convert","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"img2lmdb.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/img2lmdb.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":"89da1a2395b0d0d9"}},{"code_sha256_prefix":"2a2ae041586bbc78","entry":"resize_multiple","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"img2lmdb.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/img2lmdb.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":"2a2ae041586bbc78"}},{"code_sha256_prefix":"16d1a2cd91c61d3c","entry":"resize_worker","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"img2lmdb.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/img2lmdb.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":"16d1a2cd91c61d3c"}},{"code_sha256_prefix":"129b804760b3115f","entry":"zero_module","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"model/nn.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/model/nn.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":"129b804760b3115f"}},{"code_sha256_prefix":"ecd0fc28815b65ae","entry":"avg_pool_nd","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"model/nn.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/model/nn.py","link_basis":"harvester_set","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":"ecd0fc28815b65ae"}},{"code_sha256_prefix":"fe4eb545bbb728e0","entry":"conv_nd","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"model/nn.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/model/nn.py","link_basis":"harvester_set","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":"fe4eb545bbb728e0"}},{"code_sha256_prefix":"4f9b67ed1294c6a0","entry":"is_time","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"experiment.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/experiment.py","link_basis":"harvester_set","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":"4f9b67ed1294c6a0"}},{"code_sha256_prefix":"3436fefeb3a4b49a","entry":"jsonable","repo":"mlpc-ucsd/patch-dm","repo_kind":"official","path":"config_base.py","file_url":"https://github.com/mlpc-ucsd/patch-dm/blob/HEAD/config_base.py","link_basis":"harvester_set","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":"3436fefeb3a4b49a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}