Coder Social home page Coder Social logo

model-swap-face's Introduction

Better model,Better performance

  Note:这个项目展示的是我在数字模特方面的一些探索,希望通过降本增效的方式挖掘生成技术的实际商用价值。此项目展示的是仅支持端到端的单模特头像合成方案,即在保留输入模特表情信息的情况下生成一张更富样式吸引力的新模特。如果想了解支持多模特形象选择的方案可以参阅我的研究笔记


效果预览

单图输入-输出展示

Sample

输入


Sample

模特风格输出



多图对比展示

Sample

多效果转换图预览

替换效果展示

  此处是展示生成图像替换回原图的效果,引入了额外的后处理。

Sample

转小孩子风格图片——左:输入-右:输出


Sample

转网红风格图片——左:输入-右:输出


Sample

转多种风格图片——1排:输入-2-5排:输出




Inference框架

Sample



使用方法

环境配置

  • Both Linux and Windows are supported, but we strongly recommend Linux for performance and compatibility reasons.
  • 64-bit Python 3.6 installation. We recommend Anaconda3 with numpy 1.14.3 or newer.
  • TensorFlow 1.10.0 or newer with GPU support.
  • One or more high-end NVIDIA GPUs with at least 11GB of DRAM. We recommend NVIDIA DGX-1 with 8 Tesla V100 GPUs.
  • NVIDIA driver 391.35 or newer, CUDA toolkit 9.0 or newer, cuDNN 7.3.1 or newer.

运行方法

  1.按照netwotk/download_weights.txt所示将模型文件下载至networks文件夹下。
  2.配置好main.py并运行python main.py


多模特选择方案

Sample

  多模特选择方案支持更多样的模特选择,实现方法可以参阅我的研究笔记


致谢

  代码部分借用了PuzerPbaylies的代码,感谢分享。


model-swap-face's People

Contributors

a312863063 avatar

Watchers

James Cloos 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.