MIT License

项目介绍

yoyo-nb/Thin-Plate-Spline-Motion-Model 是一个托管在 GitHub 上的开源项目,主要使用 Jupyter Notebook 编写,采用 MIT License 许可证,目前获得 3.6k 个 Star、550 次 Fork。

仓库全名
yoyo-nb/Thin-Plate-Spline-Motion-Model
开源许可证
MIT License
Star 数
3.6k
Fork 数
550
未关闭 Issue
79

README 摘要

[CVPR2022] Thin-Plate Spline Motion Model for Image Animation Source code of the CVPR'2022 paper "Thin-Plate Spline Motion Model for Image Animation" Paper | Supp Example animation PS: The paper trains the model for 100 epochs for a fair comparison. You can use more data and train for more epochs to get better performance. Web demo for animation Pre-trained models Tsinghua Cloud Yandex Google Drive Baidu Yun…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Thin-Plate-Spline-Motion-Model 用什么语言开发?

主要使用 Jupyter Notebook 编写,采用 MIT License 许可证,目前有 3.6k 个 Star。

Thin-Plate-Spline-Motion-Model 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Thin-Plate-Spline-Motion-Model 的源码?

可以直接克隆仓库:git clone https://github.com/yoyo-nb/Thin-Plate-Spline-Motion-Model.git,默认分支为 main;安装与运行步骤见仓库 README。

Thin-Plate-Spline-Motion-Model 最近还在维护吗?

仓库最近一次更新为 2024年2月11日,当前有 79 个未关闭 Issue;Star 数为 3.6k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

[CVPR 2022] Thin-Plate Spline Motion Model for Image Animation.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
4765
价值分
2332
活跃状态
活跃

语言占比

Jupyter Notebook
Python

README

[CVPR2022] Thin-Plate Spline Motion Model for Image Animation

License: MIT stars GitHub repo size

Source code of the CVPR’2022 paper “Thin-Plate Spline Motion Model for Image Animation”

Paper | Supp

Example animation

vox ted

PS: The paper trains the model for 100 epochs for a fair comparison. You can use more data and train for more epochs to get better performance.

Web demo for animation

Pre-trained models

Installation

We support python3.(Recommended version is Python 3.9). To install the dependencies run:

pip install -r requirements.txt

YAML configs

There are several configuration files one for each dataset in the config folder named as config/dataset_name.yaml.

See description of the parameters in the config/taichi-256.yaml.

Datasets

  1. MGif. Follow Monkey-Net.

  2. TaiChiHD and VoxCeleb. Follow instructions from video-preprocessing.

  3. TED-talks. Follow instructions from MRAA.

Here are VoxCeleb, TaiChiHD and TED-talks pre-processed datasets used in the paper. Baidu Yun Download all files under the folder, then merge the files and decompress, for example:

cat vox.tar.* > vox.tar
tar xvf vox.tar

Training

To train a model on specific dataset run:

CUDA_VISIBLE_DEVICES=0,1 python run.py --config config/dataset_name.yaml --device_ids 0,1

A log folder named after the timestamp will be created. Checkpoints, loss values, reconstruction results will be saved to this folder.

Training AVD network

To train a model on specific dataset run:

CUDA_VISIBLE_DEVICES=0 python run.py --mode train_avd --checkpoint '{checkpoint_folder}/checkpoint.pth.tar' --config config/dataset_name.yaml

Checkpoints, loss values, reconstruction results will be saved to {checkpoint_folder}.

Evaluation on video reconstruction

To evaluate the reconstruction performance run:

CUDA_VISIBLE_DEVICES=0 python run.py --mode reconstruction --config config/dataset_name.yaml --checkpoint '{checkpoint_folder}/checkpoint.pth.tar'

The reconstruction subfolder will be created in {checkpoint_folder}. The generated video will be stored to this folder, also generated videos will be stored in png subfolder in loss-less ‘.png’ format for evaluation. To compute metrics, follow instructions from pose-evaluation.

Image animation demo

  • notebook: demo.ipynb, edit the config cell and run for image animation.
  • python:
CUDA_VISIBLE_DEVICES=0 python demo.py --config config/vox-256.yaml --checkpoint checkpoints/vox.pth.tar --source_image ./source.jpg --driving_video ./driving.mp4

Acknowledgments

The main code is based upon FOMM and MRAA

Thanks for the excellent works!

And Thanks to:

评论

暂无评论