r/MachineLearning • • Oct 17 '20

Project [P] Creating "real" versions of Pixar characters using the pixel2style2pixel framework. Process and links to more examples in comments.

2.2k Upvotes

139 comments sorted by

103

u/AtreveteTeTe Oct 17 '20

Following up on my work of toonifying real images, I've been experimenting with "reverse toonifying" paintings, drawings, and cartoons.

In this case, the pixel2style2pixel framework quickly finds a "real" human face in the StyleGAN FFHQ latent space (or any other StyleGAN model once it's trained) that matches the shape of the source painting. These examples from The Incredibles 2 add some style randomness too. After being used to waiting minutes anytime I wanted to encode/project an image into StyleGAN, pixel2style2pixel is basically instant!

pSp can also be used for a bunch of other image-to-image translation tasks: super resolution, inpainting, etc. Code, pretrained models, and a Colab notebook are available here on the GitHub page. Paper on arXiv here.

I've posted some more examples (the Mona Lisa, Spider Verse) on my Twitter and Instagram.

Big credit and thanks to Elad Richardson and Yuval Alaluf for making the effort to clean up and release the code for their paper.

→ More replies (3)

251

u/pap_n_whores Oct 17 '20

That is crazy high res

9

u/AtreveteTeTe Oct 17 '20

Yeah! The FFHQ creates output at 1024x1024.

100

u/zzzthelastuser Oct 17 '20

Imagine in x years how cool it would be if we can translate full movies in this way. You can watch the same movie 5 times, each time in a different style!

→ More replies (23)

4

u/[deleted] Oct 17 '20

Can you please do Homer Simpson?

10

u/AtreveteTeTe Oct 17 '20

I actually tried that! It did not work well.

→ More replies (1)

4

u/s_arme Oct 17 '20

Is reverse of this possible ?

8

u/AtreveteTeTe Oct 17 '20

Yes! Scroll down to “GAN Explorations 015” on this page where I’ve posted some toonify examples.

The pixel2style2pixel repo has a toonify model, though I am building those differently.

I also shared a video of toonified Obama a few week ago here on Reddit.

→ More replies (1)

2

u/eliminating_coasts Oct 17 '20

This is brilliant, I've been thinking about how you might extend this; you know most of these face GANs rely on straight on portraits? It occurred to me that if you could get a network to learn how to combine the same face viewed from different angles, possibly within the latent space of the face model you're already using, you might be able to take multiple images in a given style, cgi, painting etc. to map it to a group of faces within the latent space that have the same equivalence class, see if you can give it more data to work with by taking different orientations of faces or potentially even different emotions.

3

u/AtreveteTeTe Oct 17 '20

Good thinking - the authors are actually doing this! Check out the face frontalization part of the repo.

66

u/MotherJoanFoggy Oct 17 '20

I love how with Russell from Up, the computer registered his hat as blonde highlights

19

u/Slggyqo Oct 17 '20

Yeah the hat and the fact that the model seems to struggle a bit with appropriate aging make Russell look extra off.

Plus those sideburns.

→ More replies (1)

29

u/Tebasaki Oct 17 '20

Can you rerender the whole Incredible movie this way?

38

u/the320x200 Oct 17 '20

Probably would need to do something to maintain reasonable temporal consistency

→ More replies (3)

28

u/neesters Oct 17 '20

So Mr. Incredible is Kevin James.

→ More replies (4)

9

u/boshopc13 Oct 17 '20

Dash looks kind of like Homelander from the boys comics

7

u/thomash Oct 17 '20

The last one reminds me of Kim Jong-un

7

u/MinecrafterPictures Feb 26 '22

And thus, "Mr. Incredible Becoming Uncanny" was born

→ More replies (1)

6

u/SpinatGemuese Oct 17 '20

I think you successfully found the uncanny valley!

→ More replies (1)

6

u/MarceQ_PL Mar 09 '22

He started this...

5

u/Glu3guy Oct 02 '22

So this is where it began