Coder Social home page Coder Social logo

naver-webtoon-faces's Introduction

Naver Webtoon Faces

./imgs/face2webtoon/dh.gif

Face cartoonization code is added. See here.

./imgs/face2webtoon/grb.jpg
./imgs/face2webtoon/je.jpg
./imgs/face2webtoon/jyp.jpg

This repo heavily uses codes from [this repo]

Dataset [link]

256*256 cartoon face images collected from on-going NAVER Webtoon series.

num titles 58
total images: 17662

./imgs/dataset.png

StyleGAN2

[paper] [model]

Training detail: batch 12, transfer from FFHQ, non-leaking augmentation

FID (10k samples)

Iteration FID
FFHQ 256.54
50k 11.73
100k 9.29
150k 8.87
200k 8.11
250k 7.41

Samples (FID 8.87)

./imgs/stylegan2/samples.png

4-Way Linear interpolation in w-space

./imgs/stylegan2/1.png

./imgs/stylegan2/2.png

Swapping codes at different layers

./imgs/stylegan2/3.png

Swapping Autoencoder for Deep Image Manipulation

[paper] [model]

SwapAE is a fully unsupervised generative model that embeds images into structure and style codes (similar to MUNIT). In SwapAE, the style encoder is forced to extract the global texture of the image by explicitly matching the patch statistics of the original image and swap-generated image (patch co-occurrence loss).

Training detail: batch 10, iteration 500k, single co-occurrence patch per sample

Samples

./imgs/swapae/1.png

Style code interpolation

./imgs/swapae/2.png

./imgs/swapae/3.png

./imgs/swapae/4.png

Structure code interpolation

./imgs/swapae/5.png

./imgs/swapae/6.png

./imgs/swapae/7.png

Simply interpolating the structure code didn't work well. The regional structure code editing method introduced in the original paper might work.

Swapping codes at different layers

./imgs/swapae/8.png

Injecting target style codes from the very first layer of the decoder often changes the whole identity of the original character. Detailed structures can be better preserved by applying the source style in the first few layers.

swap location = 2

./imgs/swapae/9.png

./imgs/swapae/10.png

./imgs/swapae/11.png

swap location = 3

./imgs/swapae/12.png

./imgs/swapae/13.png

./imgs/swapae/14.png

For the webcomics data domain, injecting target style codes from the 2nd~3rd layer gives pleasing style-transfer results.

swap location = 7

./imgs/swapae/15.png

./imgs/swapae/16.png

./imgs/swapae/17.png

The last few layers of the generator control the overall color.

Test image

From Slam Dunk

./imgs/swapae/18.png

Face2Webtoon

Finetuning SwapAE

Finetuning the webtoon-trained SwapAE model with real human faces for small amount of steps improves the robustness. Using the StyleGAN as a style image generator, exploration of styles without real webtoon data is also possible. See train_aux.py and face2webtoon.ipynb. An unconditional lightweight model can be found here.

./imgs/face2webtoon/dh.jpg

Facial cartoonizer + Style Swapping

Without finetuning, EdgeExtraction [code] + FacialCartoonization [code] โ†’ SwapAE also produces nice results.

./imgs/swapae/19.png

./imgs/swapae/20.png

./imgs/swapae/21.png

Failures

./imgs/swapae/22.png

JTBC Samples

./imgs/swapae/jtbc.png

naver-webtoon-faces's People

Contributors

bryandlee avatar

Watchers

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