{"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/follow-your-canvas-higher-resolution-video","title":"Follow-Your-Canvas: Higher-Resolution Video Outpainting with Extensive Content Generation","arxiv_id":"2409.01055","date":"2024-09-02","proceeding":null,"authors":["Qihua Chen","Yue Ma","Hongfa Wang","Junkun Yuan","Wenzhe Zhao","Qi Tian","Hongmei Wang","Shaobo Min","Qifeng Chen","Wei Liu"],"abstract":"This paper explores higher-resolution video outpainting with extensive content generation. We point out common issues faced by existing methods when attempting to largely outpaint videos: the generation of low-quality content and limitations imposed by GPU memory. To address these challenges, we propose a diffusion-based method called \\textit{Follow-Your-Canvas}. It builds upon two core designs. First, instead of employing the common practice of \"single-shot\" outpainting, we distribute the task across spatial windows and seamlessly merge them. It allows us to outpaint videos of any size and resolution without being constrained by GPU memory. Second, the source video and its relative positional relation are injected into the generation process of each window. It makes the generated spatial layout within each window harmonize with the source video. Coupling with these two designs enables us to generate higher-resolution outpainting videos with rich content while keeping spatial and temporal consistency. Follow-Your-Canvas excels in large-scale video outpainting, e.g., from 512X512 to 1152X2048 (9X), while producing high-quality and aesthetically pleasing results. It achieves the best quantitative results across various resolution and scale setups. The code is released on https://github.com/mayuelala/FollowYourCanvas","url_abs":"https://arxiv.org/abs/2409.01055v1","url_pdf":"https://arxiv.org/pdf/2409.01055v1.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":"follow-your-canvas-higher-resolution-video","repo_url":"https://github.com/mayuelala/followyourcanvas","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok"}}],"tasks":[{"task_slug":null,"task_name":"GPU"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2409.01055","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.01055"}},"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/mayuelala/followyourcanvas","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran":6,"unverified":9},"by_repo_kind":{"official":{"samples":17,"ran":8,"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":17,"samples":[{"code_sha256_prefix":"5105747c2711b1cb","entry":"FeedForward","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"animatediff/models/resampler.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/animatediff/models/resampler.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":"5105747c2711b1cb"}},{"code_sha256_prefix":"7d657d43bf8f10fc","entry":"convert_pytorch_state_dict_to_flax","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/modeling_flax_pytorch_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/modeling_flax_pytorch_utils.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":"7d657d43bf8f10fc"}},{"code_sha256_prefix":"2726e8826f687553","entry":"get_canvas_size","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"inference_outpainting-dir-with-prompt.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/inference_outpainting-dir-with-prompt.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":"2726e8826f687553"}},{"code_sha256_prefix":"eafa252fd6f86857","entry":"get_parameter_device","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/modeling_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/modeling_utils.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":"eafa252fd6f86857"}},{"code_sha256_prefix":"dc2045840ce679cb","entry":"get_parameter_dtype","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/modeling_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/modeling_utils.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":"dc2045840ce679cb"}},{"code_sha256_prefix":"fa58367fb507f72f","entry":"rename_key","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/modeling_flax_pytorch_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/modeling_flax_pytorch_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fa58367fb507f72f"}},{"code_sha256_prefix":"5f1d8a0f6c5bcb3e","entry":"rename_key_and_reshape_tensor","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/modeling_flax_pytorch_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/modeling_flax_pytorch_utils.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":"5f1d8a0f6c5bcb3e"}},{"code_sha256_prefix":"4719c763c53be3fe","entry":"zero_module","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"animatediff/models/motion_module.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/animatediff/models/motion_module.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":"4719c763c53be3fe"}},{"code_sha256_prefix":"301682fc3342590a","entry":"check_imports","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/dynamic_modules_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/dynamic_modules_utils.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":"301682fc3342590a"}},{"code_sha256_prefix":"15cc446dd13b8be0","entry":"get_down_block","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"animatediff/models/unet_blocks.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/animatediff/models/unet_blocks.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":"15cc446dd13b8be0"}},{"code_sha256_prefix":"f67980fe15864660","entry":"get_prompt","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"inference_outpainting-dir-with-prompt.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/inference_outpainting-dir-with-prompt.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":"f67980fe15864660"}},{"code_sha256_prefix":"00cc853a73f3aeb6","entry":"get_relative_import_files","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/dynamic_modules_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/dynamic_modules_utils.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":"00cc853a73f3aeb6"}},{"code_sha256_prefix":"450aeffe7f80f917","entry":"get_relative_imports","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/dynamic_modules_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/dynamic_modules_utils.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":"450aeffe7f80f917"}},{"code_sha256_prefix":"66e8849e3a890891","entry":"get_up_block","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"animatediff/models/unet_blocks.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/animatediff/models/unet_blocks.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":"66e8849e3a890891"}},{"code_sha256_prefix":"8e334e23cc90f5e3","entry":"load_state_dict","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"diffusers/modeling_utils.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/diffusers/modeling_utils.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":"8e334e23cc90f5e3"}},{"code_sha256_prefix":"230588e8f1237737","entry":"masked_mean","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"animatediff/models/resampler.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/animatediff/models/resampler.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":"230588e8f1237737"}},{"code_sha256_prefix":"4cb2e2a2ca0bec9f","entry":"reshape_tensor","repo":"mayuelala/followyourcanvas","repo_kind":"official","path":"animatediff/models/resampler.py","file_url":"https://github.com/mayuelala/followyourcanvas/blob/HEAD/animatediff/models/resampler.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":"4cb2e2a2ca0bec9f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}