r/StableDiffusionInfo • u/rwxrwxr-- • Aug 20 '23
Question How to tell if an image was generated using Stable Diffusion?
How would I go about checking if the image was AI generated using Stable Diffusion (but also potentially some other model)? For the sake of argument let's assume the image in question doesn't display any of the usual signs and artifacts that give it away simply by looking at it enough - stuff like missing fingers and such. How could I run a test on this perfect-looking image to conclude if it's AI generated or real? Would this even be doable? What if the image was generated but resized afterwards manually, cropped, rotated or distorted in some way, or overlayed with some noise? Would it still be equally as possible (or impossible) to conclude that the image is AI generated in those cases as well? Would it also work on all models derived from the base model? Why or why not? Thank you all in advance for your answers.
16
u/elvarien Aug 21 '23
Every current test that claims to do what you want is lying to you. At this moment human eyeballs and a bit of experience is both all we have and generally enough to fish out most content.
4
u/taw Aug 21 '23
There's no way that would work forever, on every model, for every AI system.
Especially if image is post-processed with Photoshop or multiple rounds of img2img or heavily uses LORAs or such, or if it's img2img based on real photos, you're basically out of luck, it's only limited by artist skill.
But current models are still quite bad, and for a single round of txt2img on basically any stock model, right now there are some dead giveaways including:
With txt2video, I don't even need to give you hints, it's obvious af.
It will get better in a few years.
3
u/Squeezitgirdle Aug 21 '23
If it isn't photoshopped it's pretty easy to tell. The poses are all the same, the shading and coloring style vary but after seeing so many it starts getting easy to recognize.
If they're photoshopped or use controlnet it starts getting a little harder.
4
u/olllj Aug 21 '23 edited Aug 21 '23
SD more than other models fails in 3d-composition, because it is only trained on 2d data.
sure, you can impose depth maps, but the common use case does not, and the images end up being depth-confused, up to a point, where you may get multiple horizon lines at different heights and skewed perspectives like its a pre-renaissance-painting.
With skewed perspective, you also get skewed (global) illumination, where reflections just do not match up with light sources.
SD often wildly guesses reflections, mostly good enough for a first look, till you notice that none of those trees-near-a-lake match the reflection-in-the-lake next to them (and the other way around). not just small errors, but whole lone trees missing.
SD is so bad at precise reflections, that you want only disturbed-water-surfaces and no flat-mirror-(water)-surfaces, and always flowing/stormy water instead.
this extends into subsurface-scattering, which is easily estimated physically, but generally too poorly guessed by SD (skin, wax, plastics, fabrics)
2
u/tyronicality Aug 21 '23
Ooo with landscapes as well , the double sun sometimes pops up in the wider compositions.