All Projects → YuvalNirkin → Fsgan

YuvalNirkin / Fsgan

Licence: cc0-1.0
FSGAN - Official PyTorch Implementation

Projects that are alternatives of or similar to Fsgan

Portraitnet
Code for the paper "PortraitNet: Real-time portrait segmentation network for mobile device" @ CAD&Graphics2019
Stars: ✭ 207 (-50.71%)
Mutual labels:  jupyter-notebook, segmentation
Pointrend Pytorch
A PyTorch implementation of PointRend: Image Segmentation as Rendering
Stars: ✭ 249 (-40.71%)
Mutual labels:  jupyter-notebook, segmentation
Tfwss
Weakly Supervised Segmentation with Tensorflow. Implements instance segmentation as described in Simple Does It: Weakly Supervised Instance and Semantic Segmentation, by Khoreva et al. (CVPR 2017).
Stars: ✭ 212 (-49.52%)
Mutual labels:  jupyter-notebook, segmentation
Hair Segmentation
hair segmentation in mobile device
Stars: ✭ 160 (-61.9%)
Mutual labels:  jupyter-notebook, segmentation
Tianchi Medical Lungtumordetect
天池医疗AI大赛[第一季]:肺部结节智能诊断 UNet/VGG/Inception/ResNet/DenseNet
Stars: ✭ 314 (-25.24%)
Mutual labels:  jupyter-notebook, segmentation
Keraspersonlab
Keras-tensorflow implementation of PersonLab (https://arxiv.org/abs/1803.08225)
Stars: ✭ 163 (-61.19%)
Mutual labels:  jupyter-notebook, segmentation
Cellpose
a generalist algorithm for cellular segmentation
Stars: ✭ 244 (-41.9%)
Mutual labels:  jupyter-notebook, segmentation
Mdm
A TensorFlow implementation of the Mnemonic Descent Method.
Stars: ✭ 120 (-71.43%)
Mutual labels:  jupyter-notebook, face
Cascaded Fcn
Source code for the MICCAI 2016 Paper "Automatic Liver and Lesion Segmentation in CT Using Cascaded Fully Convolutional NeuralNetworks and 3D Conditional Random Fields"
Stars: ✭ 296 (-29.52%)
Mutual labels:  jupyter-notebook, segmentation
Sipmask
SipMask: Spatial Information Preservation for Fast Image and Video Instance Segmentation (ECCV2020)
Stars: ✭ 255 (-39.29%)
Mutual labels:  jupyter-notebook, segmentation
Severstal Steel Defect Detection
Kaggle Segmentation Challenge
Stars: ✭ 160 (-61.9%)
Mutual labels:  jupyter-notebook, segmentation
Unet
unet for image segmentation
Stars: ✭ 3,751 (+793.1%)
Mutual labels:  jupyter-notebook, segmentation
Keras Segmentation Deeplab V3.1
An awesome semantic segmentation model that runs in real time
Stars: ✭ 156 (-62.86%)
Mutual labels:  jupyter-notebook, segmentation
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (-51.43%)
Mutual labels:  jupyter-notebook, face
Tfvos
Semi-Supervised Video Object Segmentation (VOS) with Tensorflow. Includes implementation of *MaskRNN: Instance Level Video Object Segmentation (NIPS 2017)* as part of the NIPS Paper Implementation Challenge.
Stars: ✭ 151 (-64.05%)
Mutual labels:  jupyter-notebook, segmentation
Kaggle airbus ship detection
Kaggle airbus ship detection challenge 21st solution
Stars: ✭ 238 (-43.33%)
Mutual labels:  jupyter-notebook, segmentation
Mtcnn
MTCNN face detection implementation for TensorFlow, as a PIP package.
Stars: ✭ 1,689 (+302.14%)
Mutual labels:  jupyter-notebook, face
Dstl unet
Dstl Satellite Imagery Feature Detection
Stars: ✭ 117 (-72.14%)
Mutual labels:  jupyter-notebook, segmentation
face video segment
Face Video Segmentation - Face segmentation ground truth from videos
Stars: ✭ 84 (-80%)
Mutual labels:  face, segmentation
Autocrop
😌 Automatically detects and crops faces from batches of pictures.
Stars: ✭ 320 (-23.81%)
Mutual labels:  jupyter-notebook, face

FSGAN - Official PyTorch Implementation

Teaser Example video face swapping: Barack Obama to Benjamin Netanyahu, Shinzo Abe to Theresa May, and Xi Jinping to Justin Trudeau.

This repository contains the source code for the video face swapping and face reenactment method described in the paper:

FSGAN: Subject Agnostic Face Swapping and Reenactment
International Conference on Computer Vision (ICCV), Seoul, Korea, 2019
Yuval Nirkin, Yosi Keller, Tal Hassner
Paper   Video

Abstract: We present Face Swapping GAN (FSGAN) for face swapping and reenactment. Unlike previous work, FSGAN is subject agnostic and can be applied to pairs of faces without requiring training on those faces. To this end, we describe a number of technical contributions. We derive a novel recurrent neural network (RNN)–based approach for face reenactment which adjusts for both pose and expression variations and can be applied to a single image or a video sequence. For video sequences, we introduce continuous interpolation of the face views based on reenactment, Delaunay Triangulation, and barycentric coordinates. Occluded face regions are handled by a face completion network. Finally, we use a face blending network for seamless blending of the two faces while preserving target skin color and lighting conditions. This network uses a novel Poisson blending loss which combines Poisson optimization with perceptual loss. We compare our approach to existing state-of-the-art systems and show our results to be both qualitatively and quantitatively superior.

Important note

THE METHODS PROVIDED IN THIS REPOSITORY ARE NOT TO BE USED FOR MALICIOUS OR INAPPROPRIATE USE CASES.
We release this code in order to help facilitate research of technical counter-measures for detecting this kind of forgeries. Suppressing this kind of publications will not stop their development but will only make it more difficult to detect them.

Please note this is a work in progress, while we make every effort to improve the results of this method, not every pair of faces can produce a high quality face swap.

Requirements

  • High-end NVIDIA GPUs with at least 11GB of DRAM.
  • Either Linux or Windows. We recommend Linux for better performance.
  • CUDA Toolkit 10.1, CUDNN 7.5, and the latest NVIDIA driver.
  • Python 3.6+ and PyTorch 1.4.0+.

Installation

For accessing FSGAN's pretrained models and auxiliary data, please fill out this form. We will then send you a link to FSGAN's shared directory and download script.

Inference

Training

TBD

Citation

@inproceedings{nirkin2019fsgan,
  title={{FSGAN}: Subject agnostic face swapping and reenactment},
  author={Nirkin, Yuval and Keller, Yosi and Hassner, Tal},
  booktitle={Proceedings of the IEEE International Conference on Computer Vision},
  pages={7184--7193},
  year={2019}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].