• Stars
    star
    691
  • Rank 65,435 (Top 2 %)
  • Language
    Python
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Swap face between two photos.

FaceSwap

Swap face between two photos for Python 3 with OpenCV and dlib.

Get Started

python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7.jpg --correct_color
Source Destination Result
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7_2d.jpg --correct_color --warp_2d
Source Destination Result

Install

Requirements

  • pip install -r requirements.txt
  • OpenCV 3: conda install opencv (If you have conda/anaconda)

Note: See requirements.txt for more details.

Git Clone

git clone https://github.com/wuhuikai/FaceSwap.git

Swap Your Face

python main.py ...

Note: Run python main.py -h for more details.

Real-time camera

python main_video.py --src_img imgs/test7.jpg --show --correct_color --save_path {*.avi}

Video

python main_video.py --src_img imgs/test7.jpg --video_path {video_path} --show --correct_color --save_path {*.avi}

More Results

From To

More Repositories

1

FastFCN

FastFCN: Rethinking Dilated Convolution in the Backbone for Semantic Segmentation.
Python
835
star
2

DeepGuidedFilter

Official Implementation of Fast End-to-End Trainable Guided Filter, CVPR 2018
Python
823
star
3

GP-GAN

Official Chainer implementation of GP-GAN: Towards Realistic High-Resolution Image Blending (ACMMM 2019, oral)
Python
448
star
4

TF-A2RL

The official implementation for A2-RL: Aesthetics Aware Rinforcement Learning for Automatic Image Cropping
Python
189
star
5

MSC

MSC: A Dataset for Macro-Management in StarCraft II
Python
138
star
6

PointCloudSuperResolution

Point Cloud Super Resolution with Adversarial Residual Graph Networks
Python
56
star
7

SparseMask

SparseMask: Differentiable Connectivity Learning for Dense Image Prediction.
Python
51
star
8

chainer-pix2pix

Chainer implementation for Image-to-Image Translation Using Conditional Adversarial Networks
Python
39
star
9

DeepCV

A set of RESTful APIs for computer vision and image processing with PyTorch and Flask.
HTML
8
star
10

chainer-neural-style

Chainer implementation for Neural Style Transfer & Fast Neural Style Transfer
Python
6
star
11

chainer-realism-cnn

Chainer implementation for realismCNN.
Python
6
star
12

a3c-deepmind-pytorch

Python
6
star
13

pytorch-a3c

Python
3
star
14

SIFT

SIFT in C++
C++
3
star
15

pytorch-dqn-universe

Deep Reinforcement learning with pytorch on universe platform
Python
2
star
16

GP-GAN-Project

Project Website for GP-GAN: Towards Realistic High-Resolution Image Blending
HTML
2
star
17

wuhuikai

2
star
18

CNN_CUT

Using CNN to boot up GrabCut
C++
2
star
19

FastFCNProject

HTML
1
star
20

ProximalGradientOptimization

Python source code & example for use proximal gradient optimization
Python
1
star
21

DeepDrone

A python library for running image (video) processing, computer vision, and deep learning algorithms on Tello (DJI drone).
Python
1
star
22

DeepJS

HTML
1
star
23

DeepGuidedFilterProject

HTML
1
star