r/MachineLearning • • Mar 20 '22

Research [R][P] StyleNeRF: A Style-based 3D-Aware Generator for High-resolution Image Synthesis + Gradio Web Demo

618 Upvotes

35 comments sorted by

18

u/Illustrious_Row_9971 Mar 20 '22 edited Mar 26 '22

-5

u/[deleted] Mar 20 '22

Is the demo already trained? I'm trying to do a project where I morph the face of a famous character into the style of a clipart rock for instance

30

u/Auth0ritySong Mar 20 '22

Trippy. Why do the lips close and open as the people move around?

7

u/narwhal_breeder Mar 21 '22

Because, in general, GANs are pretty bad at preserving temporal information.
You can think of each frame in these animations the output of several parameters, what usually isn't inputted is the result of the previous frame, as there isnt enough temporal training data to teach the AI about contextual links through time.

Each frame is a prediction, and the GANs training data has influenced some angles for some input sseds to have mouths that appear open, and some that appear closed.

5

u/LevKusanagi Mar 21 '22

great work but music why

7

u/potat489 Mar 21 '22

Im so high rn I just saw paintings looking around

2

u/chucklesoclock Mar 21 '22

Feel like I will be seeing this in commercials soon

2

u/clonea85m09 Mar 21 '22

Ok, now put D.va somewhere in the code saying StyleNeRF this!

1

u/zzzthelastuser Student Mar 21 '22

It looks good, impressive actually!

I notived that the rotating heads don't really look like the heads are rotating though. The heads stretch weirdly while the face stays mostly frontal. Could this origin from the various camera lens distortions? Because if you pause the video at any moment the face looks realistic, but in motion you see the back of the head warping as if it gets bigger (mega mind)

3

u/dork Mar 21 '22

maybe because the pivot point is the nose which is not natural - people move their head with their neck so the movement is unnatural and looks strange...

2

u/FraudulentHack Mar 21 '22

The face is 'rotating' albeit the focus point for the rotation is extremely awkward (half an inch inside the middle of the nose), and the camera movement is just as unnatural and awkward. However I don't see as much warping as you do.

2

u/klprint Mar 21 '22

Yes, I noticed the same. The angle of the face rotation is smaller than the rest of the head. You can see this especially when you focus on the eyes which barely move relative to each other.

2

u/No-Intern2507 Mar 21 '22

wel, it looks like telephoto perspective , nose and all are changing thoso its not that flat

1

u/narwhal_breeder Mar 21 '22

Perspective is actually temporally important in motion, as GANs are bad at preserving context, we will see weird things like hair being shown at different perspectives and proportions not lining up.

1

u/JustSamJ Mar 21 '22

Can't wait to see Two Minute Papers cover this, seems pretty incredible.

1

u/doubledad222 Mar 21 '22

Wait 'till Justin Pinkney gets his hands on this !!!

1

u/mindbleach Mar 21 '22

What GRAF does to cars is completely wrong but kind of awesome.

1

u/ethereumturk May 08 '22

Wtf is the name of this amazing song

1

u/unselfishprocessing Jan 06 '23

Wow, this looks amazing!

1

u/perspectiveiskey Mar 21 '22

Contrarian viewpoint here. Maybe someone can show me what I'm missing.


While the implementation is very smooth and aesthetically appealing, I really dislike this from a theoretical standpoint, and it is made all the more obvious when applying it on old paintings.

This type of generation actually infers no new information. It is absolutely false information. So the question is "why do it"? It's not like we're "seeing around corners". We are literally recalling what we expect to see around corners.

By contrast, I really appreciated the recent research where depth was inferred. That kind of inference can be used to supplement noisy parallax information, whether it be temporal or spatial, and create a higher definition z-buffer, doing something akin to a Kalman filter.

But this? I'm seriously drawing a blank as to the possible usefulness of this.

1

u/mindbleach Mar 21 '22

Back when the state-of-the-art was a morphable model for the synthesis of 3D faces, in the previous century, the applications seemed pretty obvious: you would use it to render faces. That's not a rare case. It's highly specialized... but so is your brain's ability to look at a face and go "that's not right." So for modeling, it's great to be able to closely match the 3D shape of a real person's face from just a photograph. The fact you know it's a face and cheat based on how faces are generally shaped is not a dealbreaker. Using the image itself, in the dark ages, or inferring lighting and texture, here in the future, also simplifies image-to-image applications, like a whole spectrum of special effects gimmicks in film and television.

Is it useful to general-purpose computer vision? Not, really no.

But there are other fields.

1

u/perspectiveiskey Mar 21 '22

You still haven't convinced me of something novel or useful here though. Pose estimation, feature extraction, heck, even UV unwrapping onto a sphere using a single image...

I don't see the benefit of doing this in a neural network other than to flex technical prowess. To make a lame analogy, it's almost like training deep network on computing polynomial integrals.

2

u/mindbleach Mar 22 '22

Getting better at interpolating pictures of faces does not require your personal interest.

0

u/perspectiveiskey Mar 22 '22

I'm sorry you take this personally. I clearly started my thread with "contrarian viewpoint here". If you believe this is ego based - yours or mine - than yes, we can adjourn. Have a good day.

1

u/mindbleach Mar 22 '22

I'm sorry you take this personally.

I don't care that saying this is unlikely to convince you of your error - but no, and fuck you.

Don't project.

1

u/perspectiveiskey Mar 22 '22 edited Mar 22 '22

Jesus, this seems to have struck a deep nerve.


edit you know, in case you may re-read this (which I doubt you will), and more for posterity sake: the part of your argument I find unconvincing is that there are now commodity methods that can surpass this method many fold. It is so commodity that it can be done realtime in video games if one decides to dedicate enough budget to it (I am talking about rendering a face using no ML at all), then there's deepfake type alterations. So what's the target application here: making a deep fake from a single grainy image?

By contrast, the "3D aware" part of this claim is clearly not the case. It isn't 3D aware so much as it expects it to look a certain way, which literally means that by design it's going to have serious false positives. These artifacts are clearly visible in even the normal interpolation images and are comically visible in the paintings.

Anyways, clearly, you're not in the mood for a critical conversation about the matter. I do believe sometimes there are preposterous applications and results of machine learning (e.g. the slew of "we've solved medical imaging" type claims that were being made by reputable names not 5 years ago), and there's no harm in thinking about them critically.

1

u/mindbleach Mar 22 '22

Jesus, this seems to have struck a deep nerve.

This is exactly what I meant. "This has no applications." "It's been desirable for decades." "That doesn't convince me." "Maybe this isn't about you." "Are you upset? Are you gonna bail?" "That's wildly disrespectful and I reject it." "See I knew you were upset."

This is a pattern of abuse which you introduced.

This is a pattern of abuse which you alone are responsible for.

The late David Graeber described bullying as a triangular dynamic - where the response to an attack was treated as justification for the initial attack. But what makes it triangular is justifying it to an audience. It does not work without an audience. There is nobody to impress. Certainly you are not about to trick me into believing 'I took it personally' before that exact insult. You're the one who shifted this from 'I see no applications' to 'I'm not convinced we need this for those applications.' The response to that was a concise shrug. And you twisted that into a projection of irrationality and ego.

Tone-policing is a demand for asymmetric effort, and it does not even reward that effort, because if there was anyone else here to be primed to expect the harsh tone alleged, then anything short of flawless deference and kindness may trivially be dismissed, again, as merely emotional. I have long since stopped playing that game. Blunt dismissal of the premise is the response deserved, explained, and delivered.

Trying to make this about my mood is the same insult. I offered a point of reference for applications that this visibly advances. It is 3D aware in that the model is sculpted to the domain - avoiding image-space artifacts. Where paintings look off, it is largely because they differ from actual photographs. Where they look more like painted human faces than paintings of human faces... that is the goal.

1

u/perspectiveiskey Mar 22 '22 edited Mar 22 '22

This is exactly what I meant. "This has no applications." "It's been desirable for decades." "That doesn't convince me."

Look, I can see how I could have worded the bolded text differently, but at the same time, I'm literally acknowledging that I'm not the almighty holder of Truth as so often happens in these types of discussions in the ML community. It is my opinion.

None of the other things are my words.

This is a pattern of abuse which you introduced.

This is a pattern of abuse which you alone are responsible for.

No, and no. And I think I need to quote my comment literally because you're doing something I'm not interested in jumping into here. You have shifted this into abuse territory and I don't even need to address your claim at this point. My literal quoted words should suffice.


You still haven't convinced me of something novel or useful here though. Pose estimation, feature extraction, heck, even UV unwrapping onto a sphere using a single image...

Your literal first response was to say that "it didn't care what my opinion was", and then to escalate with an f-bomb. To label me stating that "something doesn't convince me" as an attack is just... strange. And of course I infer that "someone is not in a mood to talk" if they drop an f-bomb at me as a first response. You're completely off base.

0

u/No1_Op23_The_Coda Mar 21 '22

I don’t like this.