Hacker News new | past | comments | ask | show | jobs | submit login
One Click Deepfake (github.com/s0md3v)
109 points by udev4096 on May 29, 2023 | hide | past | favorite | 35 comments



From the readme: "Users must get consent from the concerned people before using their face". [0]

So I assume the author received consent from Scarlett Johansson. Well done, it must be hard to get a hold of her.

[0] https://news.ycombinator.com/from?site=github.com/s0md3v


Since there's an onnx model this should be possible to export to onnxruntime for web, i.e. a real one click (no installation) deepfake straight on the web.


The readme sounds angry. When you run this without ffmpeg, it prints:

    >python run.py
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
    ffmpeg is not installed. Read the docs you idiot.
I found a use for face-swapping recently, when working with Stable Diffusion animations. The main challenge there is keeping the frames consistent between each other. Generating a face and then face-swapping it on the full animation helps with the consistency.


Author here, sorry about that :(

Such software attract all kind of people including the casuals who end up creating github issues for problems that can be solved with a single google search or reading the docs. I got tired of multiple issues regarding ffmpeg and ended up dropping this in there. Not very proud.


Swap it for "Please RTFM: https://github.com/s0md3v/roop#installation"? https://en.wikipedia.org/wiki/RTFM has some lighter alternatives.


Done ^_^


Honestly, I like the abrasiveness. It adds a certain charm to the program when it directly chastises you for not reading the provided documentation.

For such situations like this where they *should* be following the setup procedures, the errors should be explicit & straightforward: Follow the setup docs.


No worries, but now it's more professional. Congratulations on your release.


Always assume your next boss is already using your software


Yeah but this is fine if your next boss is Linus Torvalds


Might indeed be a good test to weed out the too fragile company cultures you would want to avoid.


Can it be installed in Intel MacOS?


I imagine casting directors would love a tool like this. Would make screen testing talent so much easier.

Want to cast a new actor and see what they would look like as Superman? This will do the trick


I won't test talent, it will show you appearance, but the performance will still be delivered like the original.


Let's accelerate the AI carnage please.

Now with one click!


This gets really spicy when it can be adapted to run realtime so you can map a face on a Teams call, etc. and combine with voice mapping so you can seamlessly impersonate someone for those "It's me" extortion calls to grandmas. All of those hours of Tiktoks are now an endless goldmine for scammers...


On the other hand, since you mentioned Teams, I foresee some applications in the space of faking presence on meetings on which everyone is required to have their camera turned on.


For this you can already use a prerecorded video as a camera from OBS. The challenge is what to do when asked, and faking someone else doesn't offer any improvement for that.


Yeah but it would require a lot of compute power. Even a 1 minute clip takes significant amount of time to deepfake on consumer hardware


About 30 minutes on an i9-10850K


Still far away from real time face swapping


Actually I think making this kind of AI easier to access is a way to reduce the negative effects of this kind of tools. If only ML engineers can make deepfakes, people are actually going to believe deepkfakes.

If every 12yo asshole kid flood the internet with deepfakes, then people will actually realize that anybody can fake a video, and stop believing everything they see, which will greatly reduce the potential for misinformation/harassment/the spread of false rumors about people


One of those "things have to get worse before they can get better"?

Stop believe anything they see you must mean.

Anyway all academic, prepare for interesting times.


You know the damage script kiddies do with one click solutions?


this isn't a "hacking" tool though


How is it not? This makes something like social engineering potentially far easier. Wouldn’t that be considered a tool in the hacking toolbox?


if we follow that logic photoshop and pdf editors are hacking tools


You could use those things to assist an attack. It's been done many times. But they just don't scale. These types of tools scale. Also I'd love to see someone realtime fake their identity with Photoshop or a pdf editing tool. Seriously send me links I'd love to see it


This is 100% a hacking and extortion/blackmail/propaganda tool. Aside from entertainment I'd love to hear of a different use case...


Aside from entertainment, what's the use of Adobe Premiere? Or Davinci Resolve? Seems odd to exempt the one use case that this is most valuable for. Look at how many Hollywood movies had their CGI improved by fans using this kind of tech and a laptop.

Now imagine what happens when indie film directors have access to the same tech, which simply requires learning these tools.

I'm not dismissing the very real and very legitimate concern about how deepfakes can be (and are being) used for blackmail, extortion, and propaganda. But I wouldn't discount the legitimate uses.


Imagine thinking false rumors are going to be the biggest problem regarding AI misuse lol


I would be inclined to think this as well. The problem is, large numbers of people will still accept the fakes when it suits their beliefs, and they will claim fake on real footage that doesn't mesh with their beliefs.

This will definitely accelerate the decline of humanity, but we were headed downhill already anyway.


Can't have the plebs have access to our tools! /s


This won't possibly be misused.


We created the internet and in a few short decades we created tools that made all information on the internet useless.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: