All Projects → oawiles → X2face

oawiles / X2face

Licence: mit
Pytorch code for ECCV 2018 paper

Projects that are alternatives of or similar to X2face

Docker Course Xgboost
Materials for an online-course - "Practical XGBoost in Python"
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Bayesian Modelling In Python
A python tutorial on bayesian modeling techniques (PyMC3)
Stars: ✭ 2,332 (+1043.14%)
Mutual labels:  jupyter-notebook
Ddad
Dense Depth for Autonomous Driving (DDAD) dataset.
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Scikit Allel
A Python package for exploring and analysing genetic variation data
Stars: ✭ 201 (-1.47%)
Mutual labels:  jupyter-notebook
Machine Learning Deep Learning Notes
机器学习、深度学习的学习路径及知识总结
Stars: ✭ 203 (-0.49%)
Mutual labels:  jupyter-notebook
Rotnet
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Neurotech Course
CS198-96: Intro to Neurotechnology @ UC Berkeley
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Tensorflow2 Deep Reinforcement Learning
Code accompanying the blog post "Deep Reinforcement Learning with TensorFlow 2.1"
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Uc2 Git
Respository for Open-Science modular microscope system.
Stars: ✭ 203 (-0.49%)
Mutual labels:  jupyter-notebook
Clandmark
Open Source Landmarking Library
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Tensorflow Deep Learning
All course materials for the Zero to Mastery Deep Learning with TensorFlow course.
Stars: ✭ 170 (-16.67%)
Mutual labels:  jupyter-notebook
Ml Web App
Train and Deploy Simple Machine Learning Model With Web Interface - Docker, PyTorch & Flask
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Google Earth Engine Python Examples
Various examples for Google Earth Engine in Python using Jupyter Notebook
Stars: ✭ 203 (-0.49%)
Mutual labels:  jupyter-notebook
Data Kit
Devenez Data-Scientist sur Le Wagon On Demand
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Pytorch graph Rel
A PyTorch implementation of GraphRel
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Road lane line detection
Find lane lines on the road using Python and OpenCV, applying Canny edge detectors and Hough line transforms
Stars: ✭ 202 (-0.98%)
Mutual labels:  jupyter-notebook
Alpha Zero General
A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more
Stars: ✭ 2,617 (+1182.84%)
Mutual labels:  jupyter-notebook
Ten Rules Jupyter
Ten Simple Rules for Writing and Sharing Computational Analyses in Jupyter Notebooks
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Hivemq Mqtt Tensorflow Kafka Realtime Iot Machine Learning Training Inference
Real Time Big Data / IoT Machine Learning (Model Training and Inference) with HiveMQ (MQTT), TensorFlow IO and Apache Kafka - no additional data store like S3, HDFS or Spark required
Stars: ✭ 204 (+0%)
Mutual labels:  jupyter-notebook
Coursera
These are my learning exercices from Coursera
Stars: ✭ 203 (-0.49%)
Mutual labels:  jupyter-notebook

This repository contains the code for X2Face, presented at ECCV 2018.

Demo Files for Trained Models

The demo notebooks demonstrate the following:

  • How to load the pre-trained models
  • How to drive a face with another face in ./UnwrapMosaic/Face2Face_UnwrapMosaic.ipynb
  • How to edit the embedded face with a drawing or tattoo in ./UnwrapMosaic/Face2Face_UnwrapMosaic.ipynb
  • How to drive with pose in ./UnwrapMosaic/Pose2Face.ipynb
  • How to drive with audio in ./UnwrapMosiac/Audio2Face.ipynb

Update: We have added updated code and installation instructions to run the demo notebooks with pytorch 0.4.1 and python 2.7 in the branch 'pytorch_0.4.1' and for pytorch 0.4.1 and python 3.7 in the branch 'py37_pytorch_0.4.1'.

To run the notebooks, you need:

  • pytorch=0.2.0_4
  • torchvision
  • PIL
  • numpy
  • matplotlib

It is important to use the right version of pytorch, as the defaults for sampling and some other things have changed in more recent versions of pytorch. In these cases, the pretrained models will not work properly.

Once the environment is set up, the pre-trained models can be downloaded from the project page and the model paths in the notebooks updated appropriately (this should simply require setting the BASE_MODEL_PATH in the notebook to the correct location).

If you find this useful in your work, please cite the paper appropriately.

Training

Training code requires:

  • tensorboardX

To train a model yourself, we have given an example training file using only the photometric loss. To run this:

  • Go to the website
  • In the data section download the images and training/testing splits
  • Update the paths in ./UnwrapMosaic/VoxCelebData_withmask.py
  • Run the code with python train_model.py --results_folder $WHERE_TO_SAVE_TENSORBOARD_FILES --model_epoch_path $WHERETOSAVEMODELS

(Note that this can be run with any version of pytorch -- it is merely important that you train/test with the same version.)

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].