Coder Social home page Coder Social logo

yepjin / avid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhang-zx/avid

0.0 0.0 0.0 173.03 MB

This respository contains the code for AVID: Any-Length Video Inpainting with Diffusion Model.

Home Page: https://zhang-zx.github.io/AVID/

License: MIT License

avid's Introduction

AVID
Any-Length Video Inpainting with Diffusion Model

arXiv Project Page Static Badge

This respository contains the code for the paper AVID: Any-Length Video Inpainting with Diffusion Model. For more visualization results, please check our supplementary materils.

AVID: Any-Length Video Inpainting with Diffusion Model
Zhixing Zhang 1, Bichen Wu 2, Xiaoyan Wang 2, Yaqiao Luo 2, Luxin Zhang 2, Yinan Zhao 2, Peter Vajda 2, Dimitris Metaxas 1, and Licheng Yu 2
1 Rutgers University 2 Meta AI

AVID is a a video inpainting method versatile across a spectrum of video durations and tasks.

Recent advances in diffusion models have successfully enabled text-guided image inpainting. While it seems straightforward to extend such editing capability into video domain, there has been fewer works regarding text-guided video inpainting. Given a video, a masked region at its initial frame, and an editing prompt, it requires a model to do infilling at each frame following the editing guidance while keeping the out-of-mask region intact. There are three main challenges in text-guided video inpainting: ($i$) temporal consistency of the edited video, ($ii$) supporting different inpainting types at different structural fidelity level, and ($iii$) dealing with variable video length. To address these challenges, we introduce Any-Length Video Inpainting with Diffusion Model, dubbed as AVID. At its core, our model is equipped with effective motion modules and adjustable structure guidance, for fixed-length video inpainting. Building on top of that, we propose a novel Temporal MultiDiffusion sampling pipeline with an middle-frame attention guidance mechanism, facilitating the generation of videos with any desired duration. Our comprehensive experiments show our model can robustly deal with various inpainting types at different video duration range, with high quality.

Acknowledgement

This codebase is built on top of diffusers, AnimateDiff, and Tune-A-Video. We thank the authors for their great works.

Reference

If our work helps you, please consider to cite our paper. Thanks!

@article{zhang2023avid,
  title={AVID: Any-Length Video Inpainting with Diffusion Model},
  author={Zhang, Zhixing and Wu, Bichen and Wang, Xiaoyan and Luo, Yaqiao and Zhang, Luxin and Zhao, Yinan and Vajda, Peter and Metaxas, Dimitris and Yu, Licheng},
  journal={arXiv preprint arXiv:2312.03816},
  year={2023}
}

avid's People

Contributors

zhang-zx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.