What is UniEdit
UniEdit is an innovative video editing framework launched by researchers from Zhejiang University, Microsoft Research, and Peking University, allowing users to edit video motion and appearance without the need for model fine-tuning. The core advantage of this framework is its ability to simultaneously handle editing tasks in both the temporal dimension of videos (such as action changes) and the spatial dimension (such as stylization, object replacement, and background modification).
UniEdit Official Website Entry
- Official Project Homepage:https://jianhongbai.github.io/UniEdit/
- arXiv Research Paper:https://arxiv.org/abs/2402.13185
- GitHub Code Repository:https://github.com/JianhongBai/UniEdit(Source code pending release)
UniEdit Features
- Video Object Motion Editing: UniEdit can edit the motion of objects in a video according to text instructions. For example, the motion of a raccoon playing guitar in a video can be edited into eating an apple or waving.
- Video Stylization: This framework supports style transfer for videos, meaning users can change the visual style of a video through text descriptions without changing the content in the video, such as converting a video into an oil painting style.
- Video Background Modification: UniEdit allows users to modify or replace the background in a video. For example, a person in the video can be placed in a completely different scene.
- Video Object Replacement: The UniEdit framework supports the replacement of rigid and non-rigid objects. Users can replace static or dynamic objects in a video,
- No Training or Fine-Tuning Required: UniEdit does not require additional training or fine-tuning, greatly simplifying model deployment and use, enabling users to quickly get started with video editing.
How UniEdit Works
- Inversion Processing (Inversion):UniEdit first performs inversion processing on the input video, converting it into a random noise representation. This process typically involves the inversion process of a pre-trained diffusion video generation model (such as LaVie), gradually transforming the video from a noise state back to its original state through a series of denoising steps.
- Generate Editing Path:Based on the inversion processing, UniEdit uses a pre-trained UNet model for denoising steps to generate the edited video. This process is carried out under the condition of a given target text prompt to ensure that the generated video content conforms to the user's editing intent.
- Auxiliary Reconstruction Branch:In order to preserve the non-edited content of the source video, UniEdit introduces an auxiliary reconstruction branch. This branch starts from the same inverted noise but performs denoising under the condition of the source video text prompt to reconstruct the original video frames. The features from the reconstruction process are injected into the spatial self-attention layers of the main editing path to maintain content consistency.
- Auxiliary Motion Reference Branch:To achieve motion/action editing, UniEdit introduces an auxiliary motion reference branch that generates motion features under the condition of the target text prompt. These features are injected into the main editing path through temporal self-attention layers to guide the video's motion changes.
- Content Preservation and Motion Injection:In the main editing path, UniEdit preserves the content of the source video by replacing the value features of the spatial self-attention layers. At the same time, by injecting motion features into the temporal self-attention layers, motion editing is achieved.
- Spatial Structure Control:In appearance editing, UniEdit preserves the spatial structure of the source video by replacing the query and key features of the spatial self-attention layers in the main editing path. This helps keep the layout and position of objects unchanged when changing the video style or appearance.
- Text-guided editing:Users guide the video editing process by providing text descriptions. UniEdit parses these text descriptions and transforms them into guidance signals for video editing, thereby achieving the editing effect desired by the user.