GithubHelp home page GithubHelp logo

feg's Introduction

Translations: 简体中文 | English

介绍

FEG(Facial Expression Generation)项目自动动截图照片中人脸,生成gif人脸表情动画,生成的表情基于选定的表情视频模板。基于本项目,可以使用任意人脸照片生成各种各样有趣的表情, 欢迎Star,如 stars >= 1k,将开发更多源码和素材!

人脸活化模型基于: First Order Motion Model.

示例

FEG FEG FEG

网站:

ffmagic.com

微信小程序:

FEG

快速开始

推荐环境:python3.6.9 on ubuntu 18.04

1、ubuntu系统,python3以上环境,执行以下命令安装项目系统依赖:

sudo apt-get update
sudo apt-get install -y libgl1-mesa-glx ffmpeg gifsicle
pip3 install --upgrade pip
git clone https://github.com/techtogood/feg
cd feg
pip3 install -r requirements.txt

2、下载预训练模型到 model/avatarify_models 目录:

baidu-disk 提取码:z846
google-drive

3、运行:

python3 app.py --source_image data/input/Monalisa.png  --driving_video data/imitator_video/smile.mp4  --text nice

source_image:源人脸图片 driving_video:模仿的人脸表情视频 text:gif表情动画的文字

YAML 配置

项目工程配置,算法默认运行在CPU,如运行环境支持GPU,则算法跑到GPU: config/config.yaml

avatarify模型配置: vox-256.yaml

联系我们(微信公众号):

FEG

feg's People

Contributors

lamish avatar techtogood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.