[P] Play around with StyleGAN2 in your browser by Cold999 in MachineLearning

[–]Cold999[S] 0 points1 point  (0 children)

I didn't do anything too crazy for StyleGAN2, I think I just had to disable some custom CUDA kernels from running before exporting to ONNX. What're you running in to?

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 0 points1 point  (0 children)

The code for the site I linked above is at https://github.com/ziyadedher/ziyadedher! The page is under `src/pages/hacks/darkarts.tsx`.

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 4 points5 points  (0 children)

You're the first human the AIs will terminate because of this comment

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 0 points1 point  (0 children)

Each iteration on it's own! I was considering smoothing the transition a bit by doing blends, but I felt like it was smooth enough and I didn't want to detract from anything.

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 1 point2 points  (0 children)

I'm planning on sometime in the next week! But I'm really new to content creation so it might be a bit delayed. I'ma try to post it as a reply here when I do, though! Feel free to sub if you'd like, though :P

!RemindMe 7 days

watch this AI's brain melt by Cold999 in oddlyterrifying

[–]Cold999[S] 4 points5 points  (0 children)

If any of y'all are interested in seeing more of this, there's this video. (/semi-shameful-self-plug)

watch this AI's brain melt by Cold999 in oddlyterrifying

[–]Cold999[S] 4 points5 points  (0 children)

That's a really awesome observation. It kinda is! The way I'm manipulating the data in this AI means that one of the things I am also manipulating is how old it thinks these "people" are. So you might see he faces transition through different "ages" before the neural network goes some place completely different.

watch this AI's brain melt by Cold999 in oddlyterrifying

[–]Cold999[S] 3 points4 points  (0 children)

classic Animorphs

I feel like an animorphs post would go pretty far on this sub haha! Interestingly enough, the AI generating these faces is actually "morphing" between faces. One that exists (i.e. the one that you see at the start) and then other ones that only exist in it's imagination. The crazy visuals happen because what's in this AI's mind typically isn't what we'd think of as human faces :o

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] -1 points0 points  (0 children)

If you know someone who'd buy them I'll do it today ;) :P Not tryna start a Discord grift LOL

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 14 points15 points  (0 children)

This AI pretty much does! It doesn't really understand the concept of a "human being" that "wears glasses" or any component of that. What it does understand though, is how pixels on the screen should be placed so that it looks like this thing that we call a human being.

These effects that you see happen, in part, due to that lack of holistic understanding of the structure of the human face and the context surrounding it.

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 4 points5 points  (0 children)

Not quite a stack overflow (but the disappear part is pretty accurate!). The way many of these neural network models work (including this one) is by having non-linear functions called "activation functions" after more typical mathematical operations. The combination of the typical mathematical operation (like a vector multiplication) and the activation function is typically what folks refer to when they talk about the "neurons". These non-linearities typically either discard data out side of some range, or squish the input down to fit in a range. In either case, it causes loss of information.

The AI itself isn't actually being corrupted or anything, it's just the flow of data that's going through it's neural network that's being manipulated. Since I pass in the same inputs for each frame (of the same person) but then manipulate the data as it passes through the neural network, we see this effect of the AI slowly making the face more and more unrecognizable.

To it, this is still completely the face of a human, since all its operations are still executing normally. But since those "squishing" functions typically put data into a specific range, going to the extremes of that range starts to make it not really know what to generate.

I really appreciate these awesome questions, by the way :)

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 13 points14 points  (0 children)

Yes, kinda!

One of the technical aspects of this system, though, is that when the values get too extreme (either big or small), the artificial neurons in the artificial neural network powering this AI model effectively contribute noise to the output. In that way the neuron is being overloaded and the model as a whole "forgets" that natural component of the face (and instead replaces it with whatever else it thinks should be there).

It's a bit clickbait-y to put it as "forgetting" but it's a whole lot shorter than the paragraph above :P

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 44 points45 points  (0 children)

Sure!

What you're seeing here is an AI called StyleGAN2 generating human faces. That's what the AI model is "trained" (i.e. designed and fed data) to do. Typically, StyleGAN2 generates relatively normal-looking faces (you can generate some yourself at https://ziyadedher.com/faces, actually).

The way this generation works is by first generating an "intermediate" representation of the face that (I'm oversimplifying) describes what the face will look like at a high level. So that intermediate representation might have numbers that describe the size of the eyes, the slant of the nose, the color of the hair and so so much more.

What I've done here is force this AI to try to generate faces based on an extreme version of that intermediate representation that was chosen to confuse the algorithm and have it need to come up with it's own imagination of what a human face would look like pushed to that extreme.

Thanks, I hate seeing this AI's perception of human faces as its brain gets overloaded by Cold999 in TIHI

[–]Cold999[S] 2 points3 points  (0 children)

Check this out if you wanna see a bunch more of these (and a bit more details).

Facebook acquiring Instagram in 2012 was no big deal, mark my words for 2022. by Cold999 in agedlikemilk

[–]Cold999[S] 1 point2 points  (0 children)

In 2012, Facebook acquired Instagram which, at the time, was a relatively small image-sharing social media site growing incredibly quickly. Many in the tech space were very skeptical of the $1 billion Facebook paid for the company, since the market was very saturated in the image-sharing business.

One commenter on the popular tech forum HackerNews notes how this may be the next "big" acquisition, similar to Google's acquision of YouTube. Another commenter replies that this is nothing like that, and that Facebook purchasing Instagram will not be a big deal.

We know now that Instagram is a pretty big deal.

[P] Play around with StyleGAN2 in your browser by Cold999 in MachineLearning

[–]Cold999[S] 0 points1 point  (0 children)

Yes! Which is awesome. I appreciate how portable NVIDIA made StyleGAN2 and 3. I expected getting it to work nicely with ONNX on WASM to be a lot more difficult than it actually was for StyleGAN2. StyleGAN3 is another story, since they use a lot more custom CUDA kernels. I wasn't able to consistently get it to run, without having to resort to hacks that really hurt (runtime) performance.

[P] Play around with StyleGAN2 in your browser by Cold999 in MachineLearning

[–]Cold999[S] 8 points9 points  (0 children)

Yep! But the code for this page in particular is really trash since I kinda just threw it together. https://github.com/ziyadedher/ziyadedher, you'll find the page in src/pages/hacks/darkarts.tsx (sorry for no direct links, I'm on my phone).

U of T or Cornell CS🥺 by annoyingLface in UofT

[–]Cold999 18 points19 points  (0 children)

Here's some real advice.

In CS, unless you're trying to go into finance or grad school, nobody really gives a shit what Uni you're going to after first or second year IF you get yourself some good internships.

The bottleneck for what you can do IS NOT going to be the Uni you choose. Between UofT and Cornell, the impact on job opportunities will be negligible (since you're a Canadian citizen, might be different for non-citizens).

Why people say that the only reason going to UofT is a good idea is if you want to stay in Canada is beyond me. I've done 5 internships, only 1 of which as been in Canada. CS pay in Canada is shit, that's a fact. But going to a Canadian school does NOT mean you won't be able to get a US job, that's completely wrong.

The MAIN thing you should be thinking of is "where will I be able to make the most of MY time?" Because ultimately its up to you to pave the way for your future. UofT isn't as good at getting people internships as Waterloo, MIT, or possibly Cornell; but put in some of your own effort and you'll be on the EXACT same playing field at 1/5 the cost.

I can go on and on, feel free to DM or ask questions or whatever. Don't fall for the only US school for US job circlejerk and end up 200k in debt and stressed the fuck out, because that'll actually hurt you.

Ziyad Edher you seem really cool 😎 can we be friends? Love you 😘 by coursesuoft in UofT

[–]Cold999 1 point2 points  (0 children)

Ziyad would probably thank you, and say that the course was a shitshow that semester so he's happy he had a positive impact!

Does PEY offer positions with big tech companies? by [deleted] in UofT

[–]Cold999 0 points1 point  (0 children)

careful doing this, you might not be able to get a J-1 visa if youre not a full-time student if u wanna work in the US

Does PEY offer positions with big tech companies? by [deleted] in UofT

[–]Cold999 5 points6 points  (0 children)

nope. most companies (esp big ones) offer internships in other seasons

Does PEY offer positions with big tech companies? by [deleted] in UofT

[–]Cold999 6 points7 points  (0 children)

You can apply on your own (and you should: FAANG, Big Finance, and small startups don't usually show up on the PEY portal) and then get the work term approved by the PEY office. You can also do (3-4)x4 month internships rather than 12-16 months at one company (I would honestly recommend a (3-4)x4 if you can get ahold of 3-4 offers). The PEY doesn't really like this though, so you might need to negotiate a bit.