Somdev Sangwan Profile picture
May 28 3 tweets 2 min read Twitter logo Read on Twitter
I built a deepfake software that works from a single source image.

github.com/s0md3v/roop
Thanks to insightface for the great model. It can estimate the 3D shape of a face from a single image.

I will be working on ui+stability of the software as well features such as identify a person and only replacing them in the video, replacing multiple people etc.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Somdev Sangwan

Somdev Sangwan Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @s0md3v

May 24, 2022
🚨 ALERT 🚨

Python's ctx library and a fork of PHP's phpass have been compromised. 3 million users combined.

The malicious code sends all the environment variables to a heroku app, likely to mine AWS credentials.
First lead: reddit.com/r/Python/comme…

Then with a github search of the heroku subdomain, I found out packagist.org/packages/haute… has been also compromised which has over 2M downloads.

This seems to be an attempt to mine AWS creds as per the phpass source: github.com/hautelook/phpa…
The attacker likely got access to the maintainers of these packages by spraying credentials over a huge list of high value user accounts.

Attacker's identity is obv but it would be irresponsible to take names without undeniable proofs.

Compromised packages have been reported.
Read 7 tweets
May 5, 2021
"I have nothing to hide, why should I care about companies collecting my data?" - a thread 📃

First, let's talk about the kind of data that is collected.

Direct: Name, location, face, gender, profession, relationship status, things you have bought or wishlisted, your messages
Deduced: approx income, favorite activities, sleeping schedule, political/religious views, medical issues, academic qualification, if you have pets, types of content you like, screen time, if you have kids, if you moved recently etc.

Now, how do they use this data?
For showing you ads based on your personality, research, training their AIs to deduce more things, influencing masses, selling the data to another company etc.

Now, coming back to the original question. Why should one care? There are at least two good reasons.
Read 7 tweets
May 2, 2020
postMessage - a thread

Each open tab in your browser is called a "window object" including iframes.

postMessage is a JS feature that lets these windows talk to each other without caring about Same Origin Policy restrictions.

To understand it well let's create two webpages...
...named send.html & recieve.html

send.html contains another page recieve.html in an iframe and sends a message to it using postMessage.

The first argument of postMessage is the message and the second is the origin we want to sent he data to. If we set it to *, it will... Image
...send the data to anything that's in the iframe.

Now let's talk about receive.html, if it receives a message, it writes it to the document.

You can test it yourself, the code is here:

send.html: gist.github.com/s0md3v/d5a91bf…
recieve.html: gist.github.com/s0md3v/80ef108… Image
Read 8 tweets
Sep 10, 2019
Learn Regex in 4 tweets :)

cat matches cat
ca+t matches caaaaaaaaaaaat but not ct
ca*t matches caaaaaaaaaaaat and also ct
ca{2,4} matches caat, caaat and caaaat
c(at)+ matches catatatatatat
c(at|orn) matches cat and corn
c[ea] matches cat and cet
c[ea]+ matches caaaat and ceeet
c[A-C0-9] matches cAt, cBt, cCt, c8t etc.
c.t matches cat, c&t, c2t (any char between c and t)
c.+t matches c3%x4t (any number of any chars)
c.*t matches c3%x4t and as well as ct
^ denotes start of a string, $ denotes the end
^a+cat will match aaacat in aaacat but not in bbaaacat
cat$ will match cat in aaacat but not in aaacats
^cat$ will match only and only this string i.e. cat

\d is for digits, \w for alphanumeric chars, \s is for white space chars & line breaks
\D is for non-digits, \W for non-alphamueric chars and \s is for non-white space chars
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(