Generate video outpaint code with WAN 2.1 #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add WAN 2.1 Video Outpaint Examples
This PR introduces comprehensive examples for performing video outpaint using the WAN 2.1 model. Video outpaint allows users to extend the boundaries of an existing video (left, right, top, or bottom) and fill the newly created regions with AI-generated content, ensuring temporal consistency with the original footage.
The examples include:
wan_video_outpaint.py: A full-featured pipeline with a command-line interface for flexible outpainting.wan_video_outpaint_simple.py: A simplified demo script for quick testing and understanding.requirements_wan_outpaint.txt,README_wan_video_outpaint.md(detailed usage and tips), andtest_wan_outpaint.py.This enables users to easily expand video scenes, add context, or change aspect ratios while leveraging WAN 2.1's capabilities for high-quality, temporally consistent generation.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@yiyixuxu @sayakpaul