My Authors
Read all threads
We've posted a few threads discussing AI-generated face pictures such as those produced by thispersondoesnotexist(dot)com. We've since come up with a rudimentary method for detecting their presence in larger sets of images. #TuesdayThoughts

cc: @ZellaQuixote
Certain features (eyes, nose, mouth) always appear in the same location on the AI face images. This makes it easy to verify that all of the images in a given set are AI-generated, but at first glance it doesn't seem to help when AI pics are a small minority of the population.
To test for the presence of AI-generated face pics in a larger set of images, we assigned each image a score based on comparing several attributes of it to the image of thousands of blended AI-generated faces.
First, we calculated a weight for each pixel in the blended image, where pixels that differ more from the average color are weighted higher. We did the same for the test images and calculated a differential between the two.
Next, we combined this with several other values to produce a final score for each test image, including:

• degree of variance of color within the image
• similarity of red:green:blue ratio to the blended image
• similarity of overall brightness to the blended image
Finally, we looked at the images with the highest scores. The results were encouraging - we were able to detect the presence of the AI-generated faces even when they comprised as little as 1% of the overall population (100 of 10000 images.)
(source code available here, provided with the caveat that we aren't going to help you make it work)
pastebin.com/SfrcZ7Dc
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Conspirador Norteño

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!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

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.00/month or $30.00/year) and get exclusive features!

Become Premium

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

Donate via Paypal Become our Patreon

Thank you for your support!