https://github.com/aim-uofa/framer

[ICLR'25] Official PyTorch implementation of "Framer: Interactive Frame Interpolation".

https://github.com/aim-uofa/framer

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org, scholar.google
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.6%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

[ICLR'25] Official PyTorch implementation of "Framer: Interactive Frame Interpolation".

Basic Info
  • Host: GitHub
  • Owner: aim-uofa
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 12.5 MB
Statistics
  • Stars: 468
  • Watchers: 34
  • Forks: 27
  • Open Issues: 6
  • Releases: 0
Created almost 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

Framer

Framer: Interactive Frame Interpolation

[Wen Wang](https://github.com/encounter1997)1,2,   [Qiuyu Wang](https://scholar.google.com/citations?user=VRsy9v8AAAAJ)2,   [Kecheng Zheng](https://zkcys001.github.io)2,   [Hao Ouyang](https://ken-ouyang.github.io/)2,   [Zhekai Chen](https://github.com/Aziily)1,   [Biao Gong](https://scholar.google.com/citations?user=BwdpTiQAAAAJ)2,   [Hao Chen](https://scholar.google.com/citations?user=FaOqRpcAAAAJ)1,
[Yujun Shen](https://shenyujun.github.io)2,   [Chunhua Shen](https://cshen.github.io/)1 1[Zhejiang University, China](https://www.zju.edu.cn/english/),   2[Ant Group](https://www.antgroup.com/en)
     

💡 Changelog

  • [2024/12/20]. Thanks to kijai for the ComfyUI Support at ComfyUI-FramerWrapper!
  • [2024/12/19]. Release the checkpoints.
  • [2024/10/28]. Huggingface Gradio Demo is now available here!
  • [2024/10/25]. Launch the project page and upload the arXiv preprint.

🔆 TL;DR

We propose Framer, a more controllable and interactive frame interpolation method that allows users to produce smoothly transitioning frames between two images by customizing the trajectory of selected keypoints, enhancing control and handling challenging cases.

Main Claims

The proposed method, Framer, provides interactive frame interpolation, allowing users to customize transitions by tailoring the trajectories of selected keypoints. This approach mitigates the ambiguity of image transformation, enabling much finer control of local motions and improving the model's ability to handle challenging cases (e.g., objects with differing shapes and styles). Framer also includes an "autopilot" mode that automatically estimates keypoints and refines trajectories, simplifying the process and enabling motion-natural and temporally coherent results.

Methodology

This work utilizes a large-scale pre-trained image-to-video diffusion model (Stable Video Diffusion) as the base model. It introduces additional end-frame conditioning to facilitate video interpolation and incorporates a point trajectory controlling branch for user interaction.

Key Results

Framer outperforms existing frame interpolation methods in terms of visual quality and natural motion, particularly in cases involving complex motions and significant appearance changes. Quantitative evaluation using FVD (Fréchet Video Distance) demonstrates superior performance compared to other methods. User studies show a strong preference for Framer's output, highlighting its effectiveness in producing realistic and visually appealing results.

Showcases

Note the videos are spatially compressed. We refer readers to the project page for the original videos.

1. Video Interpolation with User-Interaction

Start Image Input Trajectory & Interpolation Results End Image

2. Image Morphing with User-Interaction

Start Image Input Trajectory & Interpolation Results End Image

3. Video Interpolation without User-Input Control

Start Image Interpolation Results End Image

4. Novel View Synthesis

Start Image Interpolation Results End Image

5. Cartoon and Sketch Interpolation

Start Image Interpolation Results End Image

6. Time-lapsing Video Generation.

Start Image Interpolation Results End Image

Local Inference

Installation

```bash conda create -n framer python=3.8 -y conda activate framer conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia

pip install -r requirements.txt ```

Prepare weights

Download pretrained Stable Video Diffusion and Framer weights and put them in ./checkpoints, as follows.

bash checkpoints/ |─ stable-video-diffusion-img2vid-xt └─ framer_512x320

Run gradio locally

bash python app.py

Some example inputs are presented in ./examples, enjoy the interactive frame interpolation!

📖 Citation BibTeX

Please consider citing our paper if our code is useful: bib @article{wang2024framer, title={Framer: Interactive Video Interpolation}, author={Wang, Wen and Wang, Qiuyu and Zheng, Kecheng and Ouyang, Hao and Chen, Zhekai and Gong, Biao and Chen, Hao and Shen, Yujun and Shen, Chunhua}, journal={arXiv preprint https://arxiv.org/abs/2410.18978}, year={2024} }

🎫 License

For academic use, this project is licensed under the 2-clause BSD License. For commercial use, please contact C Shen.

😉 Acknowledgements

Owner

  • Name: Advanced Intelligent Machines (AIM)
  • Login: aim-uofa
  • Kind: organization
  • Location: China

A research team at Zhejiang University, focusing on Computer Vision and broad AI research ...

GitHub Events

Total
  • Issues event: 27
  • Watch event: 473
  • Issue comment event: 46
  • Member event: 1
  • Push event: 22
  • Fork event: 31
Last Year
  • Issues event: 27
  • Watch event: 473
  • Issue comment event: 46
  • Member event: 1
  • Push event: 22
  • Fork event: 31

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 22
  • Total Committers: 4
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.591
Past Year
  • Commits: 22
  • Committers: 4
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.591
Top Committers
Name Email Commits
Wen Wang 3****7 9
Ken OUYANG o****h@g****m 5
C Shen 1****n 5
Qiuyu Wang 4****6 3

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 16
  • Total pull requests: 0
  • Average time to close issues: about 1 month
  • Average time to close pull requests: N/A
  • Total issue authors: 15
  • Total pull request authors: 0
  • Average comments per issue: 2.13
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 16
  • Pull requests: 0
  • Average time to close issues: about 1 month
  • Average time to close pull requests: N/A
  • Issue authors: 15
  • Pull request authors: 0
  • Average comments per issue: 2.13
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • yongjinColinChoi (2)
  • pekinghk (1)
  • NielsRogge (1)
  • fghaa (1)
  • i2gor87 (1)
  • silver1412muse (1)
  • linzijin1238 (1)
  • rpdahxn (1)
  • Yolice (1)
  • huanxve (1)
  • xieyanfu (1)
  • zcdliuwei (1)
  • toyxyz (1)
  • olivkoch (1)
  • Rubenacp (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels