Abstract
Video editing requires maintaining temporal consistency across frames, a task often addressed by unwrapping videos into 2D neural atlases. However, existing full-scene decomposition methods are computationally expensive and prone to artifacts in complex scenes. We present RNA (ROI-based Neural Atlas), a framework that focuses exclusively on user-specified Regions of Interest (ROI). By abandoning the requirement to segment every foreground object, RNA achieves high-quality, occlusion-robust video editing with significantly reduced training time and memory overhead.
Introduction
Maintaining consistency in video editing is challenging due to temporally-varying factors such as camera motion, dynamic objects, and lighting changes. State-of-the-art methods like Layered Neural Atlases (LNA) and CoDeF attempt to solve this by mapping video pixels to a canonical 2D "sprite" or atlas. A significant bottleneck in these approaches is the necessity to model the entire scene, requiring precise segmentation of every moving object—even those not intended for editing. This full-scene modeling scales poorly and often results in "ghosting" artifacts or texture blurring when handling complex overlapping motions.
Methods
RNA shifts the paradigm from global scene decomposition to localized ROI-based modeling. The framework consists of several key components designed for efficiency and user-friendliness.
ROI-based Modeling and Pipeline
Instead of decomposing the entire video, RNA optimizes a single atlas specifically for the area the user intends to modify. This approach keeps computational costs constant regardless of the background complexity. The pipeline begins with a user-defined ROI in a reference frame, which is then used to generate a 2D ROI Atlas. After the user edits this atlas (e.g., adding a graphic), the system reconstructs the edited video frames by mapping the atlas back to the original coordinates.
Mask Refinement and Blending
To handle occlusions without external segmentation models, RNA employs a self-supervised "occlusion test." By comparing original pixels to atlas-reconstructed pixels, the model automatically identifies and refines masks for objects passing in front of the ROI. Furthermore, a matting network (VitMatte) is used to generate soft masks, ensuring natural alpha-blending between edited elements and the original footage.
Position Loss
To ensure the generated atlas remains intuitive for human editors, RNA introduces a "position loss" constraint. This encourages the 2D atlas to maintain a similar orientation and scale to the original reference frame, preventing the distortion or rotation common in unconstrained neural optimization.
Key Results
RNA demonstrates superior efficiency and visual fidelity compared to existing methods. In benchmarks using the DAVIS dataset, RNA handled challenging scenarios like the "carousel" sequence, where thin chains often cause ghosting in other models.
Performance Metrics
- Speed: For a scene with five moving objects, RNA requires approximately 40 minutes of training, compared to 14 hours for LNA.
- Memory: RNA operates within a 2.4 GB GPU memory footprint, whereas competing methods like Deformable Sprites can require over 21 GB.
- Quality: Quantitative PSNR evaluations confirm that RNA maintains high reconstruction quality within the ROI, often outperforming full-frame models by avoiding global optimization errors.
Conclusion
RNA provides a practical and efficient solution for video editing by localizing the neural atlas optimization to a specific Region of Interest. This approach bypasses the need for exhaustive scene segmentation and significantly reduces the computational barrier for high-quality video manipulation. While the current model relies on a "clean" (unoccluded) reference frame for initial ROI specification, future iterations may incorporate generative inpainting to handle regions that are partially obscured throughout the entire sequence.
Summary updated