Giter Site home page Giter Site logo

tczyc1432 / hairstyle-transfer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azmarie/hairstyle-transfer

0.0 0.0 0.0 21.57 MB

πŸ’‡πŸ»β€β™€οΈ An end-to-end workflow for editing hair attributes on real faces

Jupyter Notebook 99.14% Python 0.86%

hairstyle-transfer's Introduction

Hairstyle Transfer β€” Semantic Editing GAN Latent Code

Teaser image

Abstract

Motivated by the success of StyleGAN, where stochastic variation is incorporated in generating realistic-looking images, we proposed to focus on the β€Šhairstyle attributes of a face. The right hairstyle can often only be discovered through trials and errors. Thus, being able to virtually β€œtry on” a novel hairstyle through a computer vision system seems to hold practical value in reality.

In this project, we propose an end-to-end workflow for editing hair attributes on real faces. Hairstyle Transfer leverages fixed pre-trained GAN models, GAN encoders, and manipulations of the latent code for the semantic editing. Moreover, we further confirmed the linear separability assumption of hair-related semantic attributes.

Usage

There are three colab notebooks for this end-to-end workflow.

  1. StyleGAN_Encoder Generate latent representations of your own images
  2. Get Attribute Score Pairs Generate pairs of latent code and scores for boundary training later
  3. Train Boundaries + Face Editing with Interface GAN Semantic editing with the boundary obtained

Report

Curious to learn more? Full report is now on the blog.

Reference

This implementation is based on StyleGAN and InterFaceGAN. πŸŽ‰

hairstyle-transfer's People

Contributors

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