Giter Site home page Giter Site logo

fallenshock / slicedit Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 4.0 1.52 MB

Official implementation of "Slicedit: Zero-Shot Video Editing With Text-to-Image Diffusion Models Using Spatio-Temporal Slices" (ICML 2024).

License: MIT License

Python 100.00%

slicedit's Introduction

Zero-Shot Video Editing Python PyTorch

Slicedit

Project | Arxiv | Proceedings

[ICML 2024] Official pytorch implementation of the paper: "Slicedit: Zero-Shot Video Editing With Text-to-Image Diffusion Models Using Spatio-Temporal Slices"

teaser.mp4

Installation

  1. Clone the repository

  2. Install the required dependencies: pip install -r requirements.txt

    • Tested with CUDA version 12.0 and diffusers 0.21.2

Usage

  1. Place desired input videos into Videos folder

  2. Place desired dataset config yaml file into yaml_files/dataset_configs

  3. Change experiment config .yaml if desired in yaml_files/exp_configs

    Note: The dataset config specifies the video name, source prompt and target prompt(s). Experiment configs specify the hyperparameters for the run. Use the provided default yamls as reference.

  4. Run python main.py --dataset_yaml <path to ds yaml>

    • Optional: passing --use_negative_tar_prompt improves sharpness.

License

This project is licensed under the MIT License.

Citation

If you use this code for your research, please cite our paper:

@InProceedings{cohen2024slicedit,
	title={Slicedit: Zero-Shot Video Editing With Text-to-Image Diffusion Models Using Spatio-Temporal Slices},
	author={Cohen, Nathaniel and Kulikov, Vladimir and Kleiner, Matan and Huberman-Spiegelglas, Inbar and Michaeli, Tomer},
	booktitle={Proceedings of the 41st International Conference on Machine Learning},
	pages={9109--9137},
	year={2024},
	editor={Salakhutdinov, Ruslan and Kolter, Zico and Heller, Katherine and Weller, Adrian and Oliver, Nuria and Scarlett, Jonathan and Berkenkamp, Felix},
	volume={235},
	series={Proceedings of Machine Learning Research},
	month={21--27 Jul},
	publisher={PMLR},
	url={https://proceedings.mlr.press/v235/cohen24a.html},

slicedit's People

Contributors

matankleiner avatar fallenshock avatar

Stargazers

James Le avatar Audiofool avatar Antonio Gonzalez  avatar  avatar Jade Choghari avatar  avatar Yongjia Ma avatar Jinxiu Liu avatar Jinlu Zhang avatar Fredy avatar Shikai Li avatar Kevin Wang avatar Max Ku avatar  avatar Ryan Spencer avatar  avatar Xin Ma avatar Krishneel avatar Imran Akbar avatar Ajitabh Kumar avatar Nick Maggio avatar Shahid Bilal avatar Hyeonho, Jeong avatar  avatar  avatar yhzhouowo avatar  avatar  avatar  avatar  avatar  avatar daniel.yuan avatar BigCowPeking avatar Yaqi Cai avatar  avatar  avatar Karthik Acharya avatar Jiannan Huang avatar Super Heavy avatar Tho avatar cbsudux avatar Philip Meier avatar  avatar kihle avatar

Watchers

Kostas Georgiou avatar  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.