All Projects → Zhongdao → FaceAttributeManipulation

Zhongdao / FaceAttributeManipulation

Licence: other
An implementation of Learning Residual Images for Face Attribute Manipulation

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to FaceAttributeManipulation

idpt
Internet-Delivered Psychological Therapy (IDPT) System.
Stars: ✭ 24 (-53.85%)
Mutual labels:  face
facetool
Command line utility to manipulate faces in videos and images
Stars: ✭ 38 (-26.92%)
Mutual labels:  face
emojityper
Github said "Error saving your changes: Description contains unicode characters above 0xffff" when I put the FACE LAUGHING WITH TEARS OF JOY emoji in this box
Stars: ✭ 76 (+46.15%)
Mutual labels:  face
R-MTCNN
No description or website provided.
Stars: ✭ 11 (-78.85%)
Mutual labels:  face
face
[deprecated] 👽 Face Recognition package for Laravel
Stars: ✭ 37 (-28.85%)
Mutual labels:  face
ThreeDFace
3D Face Viewer
Stars: ✭ 35 (-32.69%)
Mutual labels:  face
Cat-Face-Detector-with-OpenCV-and-JavaFX
📹 A Small OpenCV (Open Source Computer Vision) Example, who has the ability to detect multiple cat faces at the same time 🐱
Stars: ✭ 24 (-53.85%)
Mutual labels:  face
Universal Head 3DMM
This is a Project Page of 'Towards a complete 3D morphable model of the human head'
Stars: ✭ 138 (+165.38%)
Mutual labels:  face
python-face-relighting
A python implementation of portrait lighting transfer using a mass transport approach.
Stars: ✭ 25 (-51.92%)
Mutual labels:  face
GetComponentAttribute
A simple DI plugin for getting MonoBehaviour components just with an attribute over fields.
Stars: ✭ 14 (-73.08%)
Mutual labels:  attribute
jeelizGlanceTracker
JavaScript/WebGL lib: detect if the user is looking at the screen or not from the webcam video feed. Lightweight and robust to all lighting conditions. Great for play/pause videos if the user is looking or not, or for person detection. Link to live demo.
Stars: ✭ 68 (+30.77%)
Mutual labels:  face
S3FD
S3FD_Mxnet
Stars: ✭ 22 (-57.69%)
Mutual labels:  face
ai-face
人脸智能识别系统,本地上传图片,利用baidu-ai本地化人脸识别
Stars: ✭ 38 (-26.92%)
Mutual labels:  face
ARFaceFilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: ✭ 72 (+38.46%)
Mutual labels:  face
Insta flters with python
With this program you can add hat & glass on your face(it's support multiple faces)
Stars: ✭ 21 (-59.62%)
Mutual labels:  face
small model face recognition
针对移动端的人脸识别需求,训练测试一些相关的小模型实验。
Stars: ✭ 27 (-48.08%)
Mutual labels:  face
Faces
A Python wrapper around FaceApp 😔 → 😀
Stars: ✭ 79 (+51.92%)
Mutual labels:  face
lovelace-battery-entity-row
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 49 (-5.77%)
Mutual labels:  attribute
Look4Face
Demo of Face Recognition web service
Stars: ✭ 23 (-55.77%)
Mutual labels:  face
removd
Automatic ai cut outs of people, products and cars with https://www.remove.bg service
Stars: ✭ 28 (-46.15%)
Mutual labels:  face

GAN Face Attribute Manipulation with Caffe Implementation

This project uses Caffe python interface to implement Face Attribute Manipulation.

Thanks to the enhanced version of py-caffe in deepsim-caffe, a few lines of python code can train GANs quickly without any hack in caffe core lib. At present this project is incomplete yet, with only GAN loss + pixel loss + residual learning are implemented.

Demo

  • Generate Eyeglasses gen
  • Remove Eyeglasses remove

Setup

You need to clone the caffe-deepsim-branch and compile py-caffe. Then replcace your caffe path in both train.py and generate.py.

Training

  • First we need to prepare the CelebA dataset since we need the annotation of face attributes. link

  • Divided the image list into two lists according to some specific attribute, e.g. Eyeglasses here. The two lists are in the following format:

    Positive.txt
    000053.jpg 0
    000093.jpg 0
    ...
    
    Negative.txt
    000001.jpg 0
    000002.jpg 0
    ...
    

    Note that the label 0 here is meaningless since we don't need them, we add labels here just for using the ImageDataLayer in Caffe. When the lists are ready you need to replace the source fileds in data_gen.prototxt and data_dual.prototxt with the prepared lists.

  • Run the training scripts

    $ python train.py

Testing

$ mkdir test_result
$ python generate.py generator.prototxt ./snapshots_test/3000/generator.caffemodel

TODO

  • Implement the perceptual loss.(I have implement a version but it seems not to work well)
  • Adding dual learning.
  • Change the network architecture to produce larger images(128x128), now the output is 64x64.
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].